Install

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.

Summary
InstallThis is the installation controller.
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
See AlsoInstallPlugin
Instance Methods
initInvoked automatically when an instance is created.
Actions
secondstageThis index action redirects to this action to set up some additional configuration items, set some resource permissions and force an automatic login.
finishedThis is called when installation is complete.
indexDisplays the Communitas installer.

Author

Jaybill McCarthy

Instance Methods

init

function init()

Invoked automatically when an instance is created.  Initializes the current instance.  Also initializes the parent object (calls init() on the parent instance).

Registry Values

theme_global_pathfilesystem path to the global sub templates for this theme
theme_urlurl path to the base path of the current theme
default_urlurl path to the base path of the default theme
default_global_pathfilesystem path to the global sub templates for this theme
admin_theme_pathfilesystem path to the current admin theme
admin_global_pathfilesystem path to the current admin theme global includes
admin_urlurl to the base of the current admin theme

View Variables

site_nametemporary site name for installer
theme_global_pathfilesystem path to the global sub templates for this theme
theme_urlurl path to the base path of the current theme
default_urlurl path to the base path of the default theme
default_globalfilesystem path to the global sub templates for this theme
admin_theme_pathfilesystem path to the current admin theme
admin_global_pathfilesystem path to the current admin theme global includes
admin_urlurl to the base of the current admin theme
current_pathfilesystem path to the template directory for the current controller

Actions

secondstage

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.

HTTP GET or POST Parameters

usernamethe username chosen in the index action.  Used for automatic login

finished

function finishedAction()

This is called when installation is complete.

HTTP GET or POST Parameters

usernamethe username chosen in the index action

View Variables

usernamethe username passed along from secondstage
passworda randomly generated password

index

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.

HTTP GET or POST Parameters

admin_emailemail address of the admin user (if chosen)
admin_usernameusername of the admin user (if chosen)
cts_asido_pathpath to Asido image processing library
cts_smarty_pathpath to Smarty template engine
cts_timezoneapplication default timezone
cts_zf_pathpath to the Zend Framework
db_hostdatabase hostname
db_namedatabase name
db_userdatabase username
db_passdatabase password
db_portdatabase port
db_sockthe database socket
errorsAn array of error messages.  Only exists if errors occurred.
smarty_cache_dirthe directory smarty will use for caching
smarty_compile_dirthe directory smarty will use for compiled templates

View Variables

admin_emailemail address of the admin user (if chosen)
admin_usernameusername of the admin user (if chosen)
cts_asido_pathpath to Asido image processing library
cts_smarty_pathpath to Smarty template engine
cts_timezoneapplication default timezone
cts_zf_pathpath to the Zend Framework
db_hostdatabase hostname
db_namedatabase name
db_userdatabase username
db_passdatabase password
db_portdatabase port
db_sockthe database socket
errorsAn array of error messages.  Only exists if errors occurred.
smarty_cache_dirthe directory smarty will use for caching
smarty_compile_dirthe directory smarty will use for compiled templates
This plugin is instatiated if there is no config.ini in the /etc directory of the app.
function init()
Invoked automatically when an instance is created.
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.
function finishedAction()
This is called when installation is complete.
function indexAction()
Displays the Communitas installer.
Close