Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
haishi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
haishi
Commits
5250377d
Commit
5250377d
authored
Mar 27, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
1172412b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
application/Common/Conf/config.php
+16
-16
No files found.
application/Common/Conf/config.php
View file @
5250377d
...
@@ -33,21 +33,21 @@ $configs= array(
...
@@ -33,21 +33,21 @@ $configs= array(
'DEFAULT_ACTION'
=>
'index'
,
// 默认操作名称
'DEFAULT_ACTION'
=>
'index'
,
// 默认操作名称
'DEFAULT_M_LAYER'
=>
'Model'
,
// 默认的模型层名称
'DEFAULT_M_LAYER'
=>
'Model'
,
// 默认的模型层名称
'DEFAULT_C_LAYER'
=>
'Controller'
,
// 默认的控制器层名称
'DEFAULT_C_LAYER'
=>
'Controller'
,
// 默认的控制器层名称
'DEFAULT_FILTER'
=>
'htmlspecialchars'
,
// 默认参数过滤方法 用于I函数...htmlspecialchars
'DEFAULT_FILTER'
=>
'htmlspecialchars'
,
// 默认参数过滤方法 用于I函数...htmlspecialchars
'LANG_SWITCH_ON'
=>
true
,
// 开启语言包功能
'LANG_SWITCH_ON'
=>
true
,
// 开启语言包功能
'DEFAULT_LANG'
=>
'zh-cn'
,
// 默认语言
'DEFAULT_LANG'
=>
'zh-cn'
,
// 默认语言
'LANG_LIST'
=>
'zh-cn,en-us,zh-tw'
,
'LANG_LIST'
=>
'zh-cn,en-us,zh-tw'
,
'LANG_AUTO_DETECT'
=>
false
,
'LANG_AUTO_DETECT'
=>
false
,
'VAR_MODULE'
=>
'g'
,
// 默认模块获取变量
'VAR_MODULE'
=>
'g'
,
// 默认模块获取变量
'VAR_CONTROLLER'
=>
'm'
,
// 默认控制器获取变量
'VAR_CONTROLLER'
=>
'm'
,
// 默认控制器获取变量
'VAR_ACTION'
=>
'a'
,
// 默认操作获取变量
'VAR_ACTION'
=>
'a'
,
// 默认操作获取变量
'APP_USE_NAMESPACE'
=>
true
,
// 关闭应用的命名空间定义
'APP_USE_NAMESPACE'
=>
true
,
// 关闭应用的命名空间定义
'APP_AUTOLOAD_LAYER'
=>
'Controller,Model'
,
// 模块自动加载的类库后缀
'APP_AUTOLOAD_LAYER'
=>
'Controller,Model'
,
// 模块自动加载的类库后缀
'SP_TMPL_PATH'
=>
'themes/'
,
// 前台模板文件根目录
'SP_TMPL_PATH'
=>
'themes/'
,
// 前台模板文件根目录
'SP_DEFAULT_THEME'
=>
'simplebootx'
,
// 前台模板文件
'SP_DEFAULT_THEME'
=>
'simplebootx'
,
// 前台模板文件
'SP_TMPL_ACTION_ERROR'
=>
'error'
,
// 默认错误跳转对应的模板文件,注:相对于前台模板路径
'SP_TMPL_ACTION_ERROR'
=>
'error'
,
// 默认错误跳转对应的模板文件,注:相对于前台模板路径
...
@@ -58,37 +58,37 @@ $configs= array(
...
@@ -58,37 +58,37 @@ $configs= array(
'SP_ADMIN_TMPL_ACTION_ERROR'
=>
'Admin/error.html'
,
// 默认错误跳转对应的模板文件,注:相对于后台模板路径
'SP_ADMIN_TMPL_ACTION_ERROR'
=>
'Admin/error.html'
,
// 默认错误跳转对应的模板文件,注:相对于后台模板路径
'SP_ADMIN_TMPL_ACTION_SUCCESS'
=>
'Admin/success.html'
,
// 默认成功跳转对应的模板文件,注:相对于后台模板路径
'SP_ADMIN_TMPL_ACTION_SUCCESS'
=>
'Admin/success.html'
,
// 默认成功跳转对应的模板文件,注:相对于后台模板路径
'TMPL_EXCEPTION_FILE'
=>
SITE_PATH
.
'public/exception.html'
,
'TMPL_EXCEPTION_FILE'
=>
SITE_PATH
.
'public/exception.html'
,
'AUTOLOAD_NAMESPACE'
=>
array
(
'plugins'
=>
'./plugins/'
),
//扩展模块列表
'AUTOLOAD_NAMESPACE'
=>
array
(
'plugins'
=>
'./plugins/'
),
//扩展模块列表
'ERROR_PAGE'
=>
''
,
//不要设置,否则会让404变302
'ERROR_PAGE'
=>
''
,
//不要设置,否则会让404变302
'VAR_SESSION_ID'
=>
'session_id'
,
'VAR_SESSION_ID'
=>
'session_id'
,
"UCENTER_ENABLED"
=>
0
,
//UCenter 开启1, 关闭0
"UCENTER_ENABLED"
=>
0
,
//UCenter 开启1, 关闭0
"COMMENT_NEED_CHECK"
=>
0
,
//评论是否需审核 审核1,不审核0
"COMMENT_NEED_CHECK"
=>
0
,
//评论是否需审核 审核1,不审核0
"COMMENT_TIME_INTERVAL"
=>
60
,
//评论时间间隔 单位s
"COMMENT_TIME_INTERVAL"
=>
60
,
//评论时间间隔 单位s
/* URL设置 */
/* URL设置 */
'URL_CASE_INSENSITIVE'
=>
true
,
// 默认false 表示URL区分大小写 true则表示不区分大小写
'URL_CASE_INSENSITIVE'
=>
true
,
// 默认false 表示URL区分大小写 true则表示不区分大小写
'URL_MODEL'
=>
2
,
// URL访问模式,可选参数0、1、2、3,代表以下四种模式:
'URL_MODEL'
=>
1
,
// URL访问模式,可选参数0、1、2、3,代表以下四种模式:
// 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式); 3 (兼容模式) 默认为PATHINFO 模式,提供最好的用户体验和SEO支持
// 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式); 3 (兼容模式) 默认为PATHINFO 模式,提供最好的用户体验和SEO支持
'URL_PATHINFO_DEPR'
=>
'/'
,
// PATHINFO模式下,各参数之间的分割符号
'URL_PATHINFO_DEPR'
=>
'/'
,
// PATHINFO模式下,各参数之间的分割符号
'URL_HTML_SUFFIX'
=>
''
,
// URL伪静态后缀设置
'URL_HTML_SUFFIX'
=>
''
,
// URL伪静态后缀设置
'VAR_PAGE'
=>
"p"
,
'VAR_PAGE'
=>
"p"
,
'URL_ROUTER_ON'
=>
true
,
'URL_ROUTER_ON'
=>
true
,
'URL_ROUTE_RULES'
=>
$routes
,
'URL_ROUTE_RULES'
=>
$routes
,
/*性能优化*/
/*性能优化*/
'OUTPUT_ENCODE'
=>
true
,
// 页面压缩输出
'OUTPUT_ENCODE'
=>
true
,
// 页面压缩输出
'HTML_CACHE_ON'
=>
false
,
// 开启静态缓存
'HTML_CACHE_ON'
=>
false
,
// 开启静态缓存
'HTML_CACHE_TIME'
=>
60
,
// 全局静态缓存有效期(秒)
'HTML_CACHE_TIME'
=>
60
,
// 全局静态缓存有效期(秒)
'HTML_FILE_SUFFIX'
=>
'.html'
,
// 设置静态缓存文件后缀
'HTML_FILE_SUFFIX'
=>
'.html'
,
// 设置静态缓存文件后缀
'TMPL_PARSE_STRING'
=>
array
(
'TMPL_PARSE_STRING'
=>
array
(
'/Public/upload'
=>
'/data/upload'
,
'/Public/upload'
=>
'/data/upload'
,
'__UPLOAD__'
=>
__ROOT__
.
'/data/upload/'
,
'__UPLOAD__'
=>
__ROOT__
.
'/data/upload/'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment