mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +08:00
@@ -161,15 +161,13 @@ You may configure [[yii\base\Application::controllerMap|controller map]] in the
|
||||
```php
|
||||
[
|
||||
'controllerMap' => [
|
||||
[
|
||||
// declares "account" controller using a class name
|
||||
'account' => 'app\controllers\UserController',
|
||||
// declares "account" controller using a class name
|
||||
'account' => 'app\controllers\UserController',
|
||||
|
||||
// declares "article" controller using a configuration array
|
||||
'article' => [
|
||||
'class' => 'app\controllers\PostController',
|
||||
'enableCsrfValidation' => false,
|
||||
],
|
||||
// declares "article" controller using a configuration array
|
||||
'article' => [
|
||||
'class' => 'app\controllers\PostController',
|
||||
'enableCsrfValidation' => false,
|
||||
],
|
||||
],
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user