Browse Source

Yii 2 advanced app environments usage fix

tags/2.0.0-beta
Alexander Kochetov 11 years ago
parent
commit
b4c60c142c
  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',
],
'modules' => [
// 'debug' => [
// 'class' => 'yii\debug\Module',
// ],
// 'debug' => 'yii\debug\Module',
// 'gii' => 'yii\gii\Module',
],
];

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

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

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

@ -13,9 +13,6 @@ return [
'basePath' => dirname(__DIR__),
'vendorPath' => $rootDir . '/vendor',
'controllerNamespace' => 'frontend\controllers',
'modules' => [
'gii' => 'yii\gii\Module'
],
'extensions' => require($rootDir . '/vendor/yiisoft/extensions.php'),
'components' => [
'db' => $params['components.db'],

Loading…
Cancel
Save