|
@@ -1,15 +1,8 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
|
|
|
-return array(
|
|
|
|
|
|
|
+$config = array(
|
|
|
'id' => 'bootstrap',
|
|
'id' => 'bootstrap',
|
|
|
'basePath' => dirname(__DIR__),
|
|
'basePath' => dirname(__DIR__),
|
|
|
- 'preload' => array('debug'),
|
|
|
|
|
- 'modules' => array(
|
|
|
|
|
- 'debug' => array(
|
|
|
|
|
- 'class' => 'yii\debug\Module',
|
|
|
|
|
- 'enabled' => YII_ENV_DEV,
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
'components' => array(
|
|
'components' => array(
|
|
|
'cache' => array(
|
|
'cache' => array(
|
|
|
'class' => 'yii\caching\FileCache',
|
|
'class' => 'yii\caching\FileCache',
|
|
@@ -32,3 +25,11 @@ return array(
|
|
|
),
|
|
),
|
|
|
'params' => require(__DIR__ . '/params.php'),
|
|
'params' => require(__DIR__ . '/params.php'),
|
|
|
);
|
|
);
|
|
|
|
|
+
|
|
|
|
|
+if (YII_ENV_DEV) {
|
|
|
|
|
+ $config['preload'][] = 'debug';
|
|
|
|
|
+ $config['modules']['debug'] = 'yii\debug\Module';
|
|
|
|
|
+ $config['modules']['gii'] = 'yii\gii\Module';
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+return $config;
|