Commit 746dfa2e by Qiang Xue

Merge pull request #1895 from creocoder/yii2-advanced-app-environment-fixes

Yii 2 advanced app environments fix
parents 93fe5f7c b4c60c14
...@@ -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