Klaod
Klaod

Reputation: 67

Yii2:: cant acess to module from url

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

Upvotes: 0

Views: 334

Answers (1)

Klaod
Klaod

Reputation: 67

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',
        ],
    ],

Upvotes: 1

Related Questions