This is the installation controller. It’s called via a Zend_Controller plugin called InstallPlugin that fires on the pre_dispatch event if there’s no config.ini.
| Install | This is the installation controller. |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| See Also | InstallPlugin |
| Instance Methods | |
| init | Invoked automatically when an instance is created. |
| Actions | |
| secondstage | This index action redirects to this action to set up some additional configuration items, set some resource permissions and force an automatic login. |
| finished | This is called when installation is complete. |
| index | Displays the Communitas installer. |
function init()
Invoked automatically when an instance is created. Initializes the current instance. Also initializes the parent object (calls init() on the parent instance).
| theme_global_path | filesystem path to the global sub templates for this theme |
| theme_url | url path to the base path of the current theme |
| default_url | url path to the base path of the default theme |
| default_global_path | filesystem path to the global sub templates for this theme |
| admin_theme_path | filesystem path to the current admin theme |
| admin_global_path | filesystem path to the current admin theme global includes |
| admin_url | url to the base of the current admin theme |
| site_name | temporary site name for installer |
| theme_global_path | filesystem path to the global sub templates for this theme |
| theme_url | url path to the base path of the current theme |
| default_url | url path to the base path of the default theme |
| default_global | filesystem path to the global sub templates for this theme |
| admin_theme_path | filesystem path to the current admin theme |
| admin_global_path | filesystem path to the current admin theme global includes |
| admin_url | url to the base of the current admin theme |
| current_path | filesystem path to the template directory for the current controller |
function secondstageAction()
This index action redirects to this action to set up some additional configuration items, set some resource permissions and force an automatic login. Then it redirects to the finished action.
| username | the username chosen in the index action. Used for automatic login |
function finishedAction()
This is called when installation is complete.
| username | the username chosen in the index action |
| username | the username passed along from secondstage |
| password | a randomly generated password |
function indexAction()
Displays the Communitas installer. This action will be called if the /etc/config.ini is missing. It will gather the required installation variables, check that all the file/directory permissions are correct, write the config file and install the database.
| admin_email | email address of the admin user (if chosen) |
| admin_username | username of the admin user (if chosen) |
| cts_asido_path | path to Asido image processing library |
| cts_smarty_path | path to Smarty template engine |
| cts_timezone | application default timezone |
| cts_zf_path | path to the Zend Framework |
| db_host | database hostname |
| db_name | database name |
| db_user | database username |
| db_pass | database password |
| db_port | database port |
| db_sock | the database socket |
| errors | An array of error messages. Only exists if errors occurred. |
| smarty_cache_dir | the directory smarty will use for caching |
| smarty_compile_dir | the directory smarty will use for compiled templates |
| admin_email | email address of the admin user (if chosen) |
| admin_username | username of the admin user (if chosen) |
| cts_asido_path | path to Asido image processing library |
| cts_smarty_path | path to Smarty template engine |
| cts_timezone | application default timezone |
| cts_zf_path | path to the Zend Framework |
| db_host | database hostname |
| db_name | database name |
| db_user | database username |
| db_pass | database password |
| db_port | database port |
| db_sock | the database socket |
| errors | An array of error messages. Only exists if errors occurred. |
| smarty_cache_dir | the directory smarty will use for caching |
| smarty_compile_dir | the directory smarty will use for compiled templates |
Invoked automatically when an instance is created.
function init()
This index action redirects to this action to set up some additional configuration items, set some resource permissions and force an automatic login.
function secondstageAction()
This is called when installation is complete.
function finishedAction()
Displays the Communitas installer.
function indexAction()