3 $params = require __DIR__ . '/params.php';
4 $db = require __DIR__ . '/db.php';
9 'basePath' => dirname(__DIR__),
10 'language' => 'ru-RU',
11 'bootstrap' => ['log'],
13 '@bower' => '@vendor/bower-asset',
14 '@npm' => '@vendor/npm-asset',
18 // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
19 'cookieValidationKey' => '4u6WczdipA-FIzbuf8PYgjoiid_6zdNy',
22 'class' => 'yii\caching\FileCache',
25 'identityClass' => 'app\models\User',
26 'enableAutoLogin' => true,
29 'errorAction' => 'site/error',
32 'class' => 'yii\swiftmailer\Mailer',
33 // send all mails to a file by default. You have to set
34 // 'useFileTransport' to false and configure a transport
35 // for the mailer to send real emails.
36 'useFileTransport' => false,
39 'traceLevel' => YII_DEBUG ? 3 : 0,
42 'class' => 'yii\log\FileTarget',
43 'levels' => ['error', 'warning'],
50 'class' => 'yii\i18n\PhpMessageSource',
51 'sourceLanguage' => 'en-US',
52 'basePath' => '@app/messages',
55 'app/error' => 'error.php',
59 'class' => 'yii\i18n\PhpMessageSource',
60 'sourceLanguage' => 'en-US',
61 'basePath' => '@app/messages',
67 'class' => 'yii\i18n\PhpMessageSource',
68 'sourceLanguage' => 'en-US',
69 'basePath' => '@app/messages',
75 'class' => 'yii\i18n\PhpMessageSource',
76 'sourceLanguage' => 'en-US',
77 'basePath' => '@app/messages',
79 'app' => 'status.app',
83 'class' => 'yii\i18n\PhpMessageSource',
84 'sourceLanguage' => 'en-US',
85 'basePath' => '@app/messages',
87 'app' => 'locations.app',
91 'class' => 'yii\i18n\PhpMessageSource',
92 'sourceLanguage' => 'en-US',
93 'basePath' => '@app/messages',
95 'app' => 'regions.app',
99 'class' => 'yii\i18n\PhpMessageSource',
100 'sourceLanguage' => 'en-US',
101 'basePath' => '@app/messages',
103 'app' => 'contact.app',
111 'enablePrettyUrl' => true,
112 'showScriptName' => false,
122 // configuration adjustments for 'dev' environment
123 $config['bootstrap'][] = 'debug';
124 $config['modules']['debug'] = [
125 'class' => 'yii\debug\Module',
126 // uncomment the following to add your IP if you are not connecting from localhost.
127 'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.68'],
130 $config['bootstrap'][] = 'gii';
131 $config['modules']['gii'] = [
132 'class' => 'yii\gii\Module',
133 // uncomment the following to add your IP if you are not connecting from localhost.
134 'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.68'],