Class CWebModule
CWebModule represents an application module.
An application module may be considered as a self-contained sub-application that has its own controllers, models and views and can be reused in a different project as a whole. Controllers inside a module must be accessed with routes that are prefixed with the module ID.
- CComponent
- CModule
- CWebModule
Direct known subclasses
X2WebModuleIndirect known subclasses
AccountsModule, ActionsModule, MobileModule, OpportunitiesModule, ProductsModule, QuotesModule, ServicesModule, TemplatesModule, TopicsModule, UsersModule, WorkflowModule, X2LeadsModule, BugReportsModule, CalendarModule, ChartsModule, ContactsModule, DocsModule, GroupsModule, MarketingModule, MediaModuleCopyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/framework/web/CWebModule.php
public
string
|
|
public
string
|
#
getDescription( )
Returns the description of this module. The default implementation returns an empty string. You may override this method to customize the description of this module. |
public
string
|
#
getVersion( )
Returns the version of this module. The default implementation returns '1.0'. You may override this method to customize the version of this module. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
#
beforeControllerAction(
The pre-filter for controller actions. This method is invoked before the currently requested controller action and all its filters are executed. You may override this method in the following way: if(parent::beforeControllerAction($controller,$action)) { // your code return true; } else return false; |
public
|
#
afterControllerAction(
The post-filter for controller actions. This method is invoked after the currently requested controller action and all its filters are executed. If you override this method, make sure you call the parent implementation at the end. |
public
string
|
$defaultController | 'default' |
#
the ID of the default controller for this module. Defaults to 'default'. |
public
mixed
|
$layout |
|
#
the layout that is shared by the controllers inside this module. If a controller has explicitly declared its own CController::layout layout, this property will be ignored. If this is null (default), the application's layout or the parent module's layout (if available) will be used. If this is false, then no layout will be used. |
public
string
|
$controllerNamespace |
|
#
Namespace that should be used when loading controllers. Default is to use global namespace. |
public
array
|
$controllerMap | array() |
#
mapping from controller ID to controller configurations. Pleaser refer to
|
$behaviors,
$preload
|
public
string
|
$name |
#
The name of this module. |
public
string
|
$description |
#
The description of this module. |
public
string
|
$version |
#
The version of this module. |
public
string
|
$controllerPath |
#
The directory that contains the controller classes. Defaults to 'moduleDir/controllers' where moduleDir is the directory containing the module class. |
public
string
|
$viewPath |
#
The root directory of view files. Defaults to 'moduleDir/views' where moduleDir is the directory containing the module class. |
public
string
|
$layoutPath |
#
The root directory of layout files. Defaults to 'moduleDir/views/layouts' where moduleDir is the directory containing the module class. |
$aliases,
$basePath,
$components,
$id,
$import,
$modulePath,
$modules,
$params,
$parentModule
|