Commit d3a181c6 by Carsten Brandt

fixed controllerMap docs in Module

fixes #1541
parent 6ed8d176
...@@ -62,16 +62,16 @@ abstract class Module extends Component ...@@ -62,16 +62,16 @@ abstract class Module extends Component
* @var array mapping from controller ID to controller configurations. * @var array mapping from controller ID to controller configurations.
* Each name-value pair specifies the configuration of a single controller. * Each name-value pair specifies the configuration of a single controller.
* A controller configuration can be either a string or an array. * A controller configuration can be either a string or an array.
* If the former, the string should be the class name or path alias of the controller. * 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 * If the latter, the array must contain a 'class' element which specifies
* the controller's class name or path alias, and the rest of the name-value pairs * the controller's fully qualified class name, and the rest of the name-value pairs
* in the array are used to initialize the corresponding controller properties. For example, * in the array are used to initialize the corresponding controller properties. For example,
* *
* ~~~ * ~~~
* [ * [
* 'account' => '@app/controllers/UserController', * 'account' => 'app\controllers\UserController',
* 'article' => [ * 'article' => [
* 'class' => '@app/controllers/PostController', * 'class' => 'app\controllers\PostController',
* 'pageTitle' => 'something new', * 'pageTitle' => 'something new',
* ], * ],
* ] * ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment