我正在使用Yii2开发我的网络应用程序。但是当我使用mdmsoft的yii2-admin和版本3 for prettyURL时,我将yii2-admin的文件夹移动到modules文件夹,并像这样更改main.php:
'bootstrap' => [
'admin'
],
'authManager' => [
'class' => 'yii\rbac\DbManager', // or use 'yii\rbac\DbManager'
],
'modules' => [
'rbac' => [
'class' => 'app\modules\rbac\Module',
'layout' => '@backend/views/layouts/admin',
'controllerMap' => [
'assignment' => [
'class' => 'app\modules\rbac\controllers\AssignmentController',
]
],
]
],
],
'as access' => [
'class' => 'mdm\admin\classes\AccessControl',
'allowActions' => [
'*',
]
],
但是当我访问mydomain / rbac / assignment或mydomain.com/rbac/route时,......它只是一个xml视图,仅此而已?
我该如何解决?