3 $params = require __DIR__ . '/params.php';
4 $db = require __DIR__ . '/db.php';
10 'basePath' => dirname(__DIR__),
11 'language' => 'ru-RU',
12 'bootstrap' => ['log'],
14 '@bower' => '@vendor/bower-asset',
15 '@npm' => '@vendor/npm-asset',
19 // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
20 'cookieValidationKey' => '4u6WczdipA-FIzbuf8PYgjoiid_6zdNy',
23 'class' => 'yii\caching\FileCache',
26 'identityClass' => 'app\models\User',
27 'enableAutoLogin' => true,
30 'errorAction' => 'site/error',
33 'class' => 'yii\swiftmailer\Mailer',
34 // send all mails to a file by default. You have to set
35 // 'useFileTransport' to false and configure a transport
36 // for the mailer to send real emails.
37 'useFileTransport' => false,
40 'traceLevel' => YII_DEBUG ? 3 : 0,
43 'class' => 'yii\log\FileTarget',
44 'levels' => ['error', 'warning'],
51 'class' => 'yii\i18n\PhpMessageSource',
52 'sourceLanguage' => 'en-US',
53 'basePath' => '@app/messages',
56 'app/error' => 'error.php',
60 'class' => 'yii\i18n\PhpMessageSource',
61 'sourceLanguage' => 'en-US',
62 'basePath' => '@app/messages',
68 'class' => 'yii\i18n\PhpMessageSource',
69 'sourceLanguage' => 'en-US',
70 'basePath' => '@app/messages',
76 'class' => 'yii\i18n\PhpMessageSource',
77 'sourceLanguage' => 'en-US',
78 'basePath' => '@app/messages',
80 'app' => 'status.app',
84 'class' => 'yii\i18n\PhpMessageSource',
85 'sourceLanguage' => 'en-US',
86 'basePath' => '@app/messages',
88 'app' => 'locations.app',
92 'class' => 'yii\i18n\PhpMessageSource',
93 'sourceLanguage' => 'en-US',
94 'basePath' => '@app/messages',
96 'app' => 'regions.app',
100 'class' => 'yii\i18n\PhpMessageSource',
101 'sourceLanguage' => 'en-US',
102 'basePath' => '@app/messages',
104 'app' => 'contact.app',
112 'enablePrettyUrl' => true,
113 'showScriptName' => false,
123 // configuration adjustments for 'dev' environment
124 $config['bootstrap'][] = 'debug';
125 $config['modules']['debug'] = [
126 'class' => 'yii\debug\Module',
127 // uncomment the following to add your IP if you are not connecting from localhost.
128 'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.68'],
131 $config['bootstrap'][] = 'gii';
132 $config['modules']['gii'] = [
133 'class' => 'yii\gii\Module',
134 // uncomment the following to add your IP if you are not connecting from localhost.
135 'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.68'],