Initial commit,修正
This commit is contained in:
Executable
+70
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
# @Author: 嗨噜客(三亚) <fm453>
|
||||
# @Date: 2022-05-15T21:19:28+08:00
|
||||
# @Email: fm453@lukegzs.com
|
||||
# @Last modified by: fm453
|
||||
# @Last modified time: 2022-05-15T21:19:31+08:00
|
||||
# @Copyright: www.hiluker.cn
|
||||
|
||||
$params = array_merge(
|
||||
require(__DIR__ . '/../../common/config/params.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/citys.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params-car.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params-letter.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params-area.php'),
|
||||
require(__DIR__ . '/../../addons-'.HI_APP.'/config/params.php'),
|
||||
require(__DIR__ . '/params.php')
|
||||
);
|
||||
|
||||
$config = [
|
||||
'id' => 'web-frontend',
|
||||
'basePath' => dirname(__DIR__),
|
||||
'bootstrap' => ['log'],
|
||||
'controllerNamespace' => 'frontend\controllers',
|
||||
'defaultRoute' => 'site', //默认路由控制器
|
||||
'modules' =>[],
|
||||
'layout' => 'empty',//布局文件 优先级: 控制器>配置文件>系统默认
|
||||
'language'=>'zh-CN',
|
||||
'components' => [
|
||||
'request' => [
|
||||
'csrfParam' => '_csrf-frontend',
|
||||
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||
'cookieValidationKey' => '9F7706851F99630BA8FA23E2E897226E',
|
||||
'parsers' => [
|
||||
'application/json' => 'yii\web\JsonParser',
|
||||
]
|
||||
],
|
||||
'user' => [
|
||||
'identityClass' => 'common\models\Member',
|
||||
'enableAutoLogin' => true,
|
||||
'identityCookie' => ['name' => '_identity-frontend', 'httpOnly' => true],
|
||||
],
|
||||
'session' => [
|
||||
// this is the name of the session cookie used for login on the frontend
|
||||
'name' => 'advanced-frontend-web',
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
[
|
||||
'class' => 'yii\log\FileTarget',
|
||||
'levels' => ['error', 'warning'],
|
||||
],
|
||||
],
|
||||
],
|
||||
'errorHandler' => [
|
||||
'errorAction' => 'site/error',
|
||||
],
|
||||
'urlManager' => [
|
||||
'enablePrettyUrl' => true,
|
||||
'enableStrictParsing' => false,
|
||||
'showScriptName' => true, //建议TRUE,减少出现路径错误
|
||||
'suffix' => '.hi',
|
||||
'rules' => [
|
||||
],
|
||||
],
|
||||
],
|
||||
'params' => $params,
|
||||
];
|
||||
return $config;
|
||||
Reference in New Issue
Block a user