Yii2 mdmsoft和xml视图的移动文件夹mdm-admin出现了

时间:2015-11-17 08:06:40

标签: php xml yii2 yii2-advanced-app rbac

我正在使用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视图,仅此而已?

我该如何解决?

0 个答案:

没有答案