Browse Source

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

Yii 2 advanced app environments fix
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
746dfa2e20
  1. 5
      apps/advanced/environments/dev/backend/config/main-local.php
  2. 5
      apps/advanced/environments/dev/frontend/config/main-local.php
  3. 3
      apps/advanced/frontend/config/main.php

5
apps/advanced/environments/dev/backend/config/main-local.php

@ -4,8 +4,7 @@ return [
//'debug', //'debug',
], ],
'modules' => [ 'modules' => [
// 'debug' => [ // 'debug' => 'yii\debug\Module',
// 'class' => 'yii\debug\Module', // 'gii' => 'yii\gii\Module',
// ],
], ],
]; ];

5
apps/advanced/environments/dev/frontend/config/main-local.php

@ -4,8 +4,7 @@ return [
//'debug', //'debug',
], ],
'modules' => [ 'modules' => [
// 'debug' => [ // 'debug' => 'yii\debug\Module',
// 'class' => 'yii\debug\Module', // 'gii' => 'yii\gii\Module',
// ],
], ],
]; ];

3
apps/advanced/frontend/config/main.php

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

Loading…
Cancel
Save