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.
42 lines
1.1 KiB
42 lines
1.1 KiB
6 years ago
|
<?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' => [
|
||
|
'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',
|
||
|
],
|
||
|
'urlManager' => [
|
||
|
'enablePrettyUrl' => true,
|
||
|
'showScriptName' => false,
|
||
|
'rules' => [
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
'defaultRoute' => '/common/index',
|
||
|
'params' => $params,
|
||
|
'language' => 'zh-CN',
|
||
|
];
|