base\Module $params

$params public property Custom module parameters (name => value). public array $params = []

base\Module $layoutPath

$layoutPath public property The root directory of layout files. Defaults to "$viewPath/layouts". public string getLayoutPath ( )public void setLayoutPath ( $path )

base\Module $module

$module public property The parent module of this module. null if this module does not have a parent. public yii\base\Module $module = null

base\Module $id

$id public property An ID that uniquely identifies this module among other modules which have the same parent. public string $id = null

base\Module $layout

$layout public property The layout that should be applied for views within this module. This refers to a view name relative to $layoutPath. If this is not set, it means the layout value of the parent module will be taken. If this is false, layout will be disabled within this module. public string|boolean $layout = null

base\Module $defaultRoute

$defaultRoute public property The default route of this module. Defaults to default. The route may consist of child module ID, controller ID, and/or action ID. For example, help, post/create, admin/post/create. If action ID is not given, it will take the default value as specified in yii\base\Controller::$defaultAction. public string $defaultRoute = 'default'

base\Module $controllerMap

$controllerMap public property Mapping from controller ID to controller configurations. Each name-value pair specifies the configuration of a single controller. A controller configuration can be either a string or an array. If the former, the string should be the fully qualified class name of the controller. If the latter, the array must contain a class element which specifies the controller's fully qualified class name, and the rest of the name-value pairs in the array are used to initiali

base\Module $controllerPath

$controllerPath public read-only property The directory that contains the controller classes. public string getControllerPath ( )

base\Module $controllerNamespace

$controllerNamespace public property The namespace that controller classes are in. This namespace will be used to load controller classes by prepending it to the controller class name. If not set, it will use the controllers sub-namespace under the namespace of this module. For example, if the namespace of this module is foo\bar, then the default controller namespace would be foo\bar\controllers. See also the guide section on autoloading to learn more about defining namespaces and how class

base\ModelEvent $isValid

$isValid public property Whether the model is in valid status. Defaults to true. A model is in valid status if it passes validations or certain checks. public boolean $isValid = true