问题描述:

im used CRUD for generate module template. Activate module on config file web.php.

'admin' => [

'class' => 'app\modules\admin\AdminModule',

],

and after can't to access:

http://blog/web/index.php?r=admin

网友答案:

I'm solved this. I added module activation code on modules $config froperty web.php file.

$config = [
    'id' => 'basic',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'modules' => [
        'admin' => [
            'class' => 'app\modules\admin\admin',
        ],
    ],
相关阅读:
Top