Commit d4a54e58 by Qiang Xue

Merge pull request #4978 from thiagotalma/patch-1

Fix brackets
parents f50f840a cc40fb5b
...@@ -161,15 +161,13 @@ You may configure [[yii\base\Application::controllerMap|controller map]] in the ...@@ -161,15 +161,13 @@ You may configure [[yii\base\Application::controllerMap|controller map]] in the
```php ```php
[ [
'controllerMap' => [ 'controllerMap' => [
[ // declares "account" controller using a class name
// declares "account" controller using a class name 'account' => 'app\controllers\UserController',
'account' => 'app\controllers\UserController',
// declares "article" controller using a configuration array
// declares "article" controller using a configuration array 'article' => [
'article' => [ 'class' => 'app\controllers\PostController',
'class' => 'app\controllers\PostController', 'enableCsrfValidation' => false,
'enableCsrfValidation' => false,
],
], ],
], ],
] ]
......
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