Initializes the current instance.
| host_id | if specified in the config.ini, this will be set to the host name. Used primarily in sites with multiple mirrored machines. |
| site_url | The base URL of the website. Pulled from the registry. |
| site_name | The value of site_name from the registry. |
| admin_role | The name of the admin role. Pulled from the registry. |
| guest_role | The name of the guest role. Pulled from the registry. |
| mca | A concatenation of the names of the model, controller, and action. Useful as a body class selector when you want different models, controllers, and/or actions to be styled differently. Does not account for routes. Use gingerly. |
| controller_name | The name of the current controller. |
| module_name | The name of the current module. |
| action_name | The name of the current action. |
| isLoggedIn | Indicates whether the current user is logged in. (boolean) |
| loggedInUsername | The username of the current user if they are logged in, or null otherwise. |
| loggedInFullName | The full name of the current user if they are logged in, or null otherwise. |
| loggedInRoleId | The role ID of the current user if they are logged in, or null otherwise. |
| loggedInUser | Array containing the data from the row in the user table of the logged in user. Does not exist if user is not logged in. |
| isAdmin | Indicates whether the current user is a member of the administrator role. (boolean) |
| last_login | The last login fate of the currently logged in user |
| format_date | A format string for date. Pulled from the registry. |
| format_datetime | A format string for date with time. Pulled from the registry. |
| format_datetime_small | A format string for short date and time. Pulled from the registry. |
| current_year | The current year as a 4 digit integer. |
| theme_path | full path to the base dir of the current theme |
| theme_url | relative url of the base dir current theme |
| theme_global_path | full path to the /global dir of the current theme |
| theme_controller_path | full path to the current controller’s template directory |
| theme_module_path | full path to the default module’s theme directory |
| default_theme_path | full path to the base dir of the default theme |
| default_theme_url | relative url of the base dir default theme |
| default_theme_global_path | full path to the /global dir of the default theme |
| default_theme_controller_path | full path to the current controller’s default template directory |
| default_theme_module_path | full path to the current module’s default theme directory |
| title_prefix | Set in the config. Can be used by themes in the title tag |
| view_states | An array of key value pairs (stored in the session) representing the state of certain pages. For instance, the last time you viewed the list of users, you were on page 3. |
| isAdminController | a boolean that specifies if this is an admin controller. |
| module_xxxx | If module xxxx is enabled, this will be true. If it’s not, this won’t exist. |