You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
<?php |
|
$params = array_merge( |
|
require(__DIR__ . '/../../common/config/params.php'), |
|
require(__DIR__ . '/../../common/config/params-local.php'), |
|
require(__DIR__ . '/params.php'), |
|
require(__DIR__ . '/params-local.php') |
|
); |
|
|
|
return [ |
|
'id' => 'app-frontend', |
|
'basePath' => dirname(__DIR__), |
|
'bootstrap' => ['log'], |
|
'controllerNamespace' => 'frontend\controllers', |
|
'components' => [ |
|
'request' => [ |
|
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation |
|
'cookieValidationKey' => '', |
|
], |
|
'user' => [ |
|
'identityClass' => 'common\models\User', |
|
'enableAutoLogin' => true, |
|
], |
|
'log' => [ |
|
'traceLevel' => YII_DEBUG ? 3 : 0, |
|
'targets' => [ |
|
[ |
|
'class' => 'yii\log\FileTarget', |
|
'levels' => ['error', 'warning'], |
|
], |
|
], |
|
], |
|
'errorHandler' => [ |
|
'errorAction' => 'site/error', |
|
], |
|
], |
|
'params' => $params, |
|
];
|
|
|