Commit b4c60c14 by Alexander Kochetov

Yii 2 advanced app environments usage fix

parent 7dd0d97c
...@@ -4,8 +4,7 @@ return [ ...@@ -4,8 +4,7 @@ return [
//'debug', //'debug',
], ],
'modules' => [ 'modules' => [
// 'debug' => [ // 'debug' => 'yii\debug\Module',
// 'class' => 'yii\debug\Module', // 'gii' => 'yii\gii\Module',
// ],
], ],
]; ];
...@@ -4,8 +4,7 @@ return [ ...@@ -4,8 +4,7 @@ return [
//'debug', //'debug',
], ],
'modules' => [ 'modules' => [
// 'debug' => [ // 'debug' => 'yii\debug\Module',
// 'class' => 'yii\debug\Module', // 'gii' => 'yii\gii\Module',
// ],
], ],
]; ];
...@@ -13,9 +13,6 @@ return [ ...@@ -13,9 +13,6 @@ return [
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'vendorPath' => $rootDir . '/vendor', 'vendorPath' => $rootDir . '/vendor',
'controllerNamespace' => 'frontend\controllers', 'controllerNamespace' => 'frontend\controllers',
'modules' => [
'gii' => 'yii\gii\Module'
],
'extensions' => require($rootDir . '/vendor/yiisoft/extensions.php'), 'extensions' => require($rootDir . '/vendor/yiisoft/extensions.php'),
'components' => [ 'components' => [
'db' => $params['components.db'], 'db' => $params['components.db'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment