mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
配置调整
This commit is contained in:
@@ -1,16 +1,33 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 应用设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
// 应用模式状态
|
// 应用模式状态
|
||||||
'app_status' => '',
|
'app_status' => '',
|
||||||
// PATHINFO变量名 用于兼容模式
|
|
||||||
'var_pathinfo' => 's',
|
|
||||||
// 兼容PATH_INFO获取
|
|
||||||
'pathinfo_fetch' => 'ORIG_PATH_INFO,REDIRECT_PATH_INFO,REDIRECT_URL',
|
|
||||||
// 扩展配置文件
|
// 扩展配置文件
|
||||||
'extra_config_list' => ['database', 'route'],
|
'extra_config_list' => ['database', 'route'],
|
||||||
// pathinfo分隔符
|
// 默认输出类型
|
||||||
'pathinfo_depr' => '/',
|
'default_return_type' => 'html',
|
||||||
|
// 默认语言
|
||||||
|
'default_lang' => 'zh-cn',
|
||||||
|
// 是否使用session
|
||||||
|
'use_session' => true,
|
||||||
|
// response输出终止执行
|
||||||
|
'response_exit' => true,
|
||||||
|
// 默认AJAX 数据返回格式,可选JSON XML ...
|
||||||
|
'default_ajax_return' => 'JSON',
|
||||||
|
// 默认JSONP格式返回的处理方法
|
||||||
|
'default_jsonp_handler' => 'jsonpReturn',
|
||||||
|
// 默认JSONP处理方法
|
||||||
|
'var_jsonp_handler' => 'callback',
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 模块设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
// 默认模块名
|
// 默认模块名
|
||||||
'default_module' => 'index',
|
'default_module' => 'index',
|
||||||
// 禁止访问模块
|
// 禁止访问模块
|
||||||
@@ -23,8 +40,19 @@ return [
|
|||||||
'empty_controller' => 'error',
|
'empty_controller' => 'error',
|
||||||
// 操作方法后缀
|
// 操作方法后缀
|
||||||
'action_suffix' => '',
|
'action_suffix' => '',
|
||||||
|
// 操作绑定到类
|
||||||
|
'action_bind_class' => false,
|
||||||
|
|
||||||
/* URL设置 */
|
// +----------------------------------------------------------------------
|
||||||
|
// | URL设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
// PATHINFO变量名 用于兼容模式
|
||||||
|
'var_pathinfo' => 's',
|
||||||
|
// 兼容PATH_INFO获取
|
||||||
|
'pathinfo_fetch' => 'ORIG_PATH_INFO,REDIRECT_PATH_INFO,REDIRECT_URL',
|
||||||
|
// pathinfo分隔符
|
||||||
|
'pathinfo_depr' => '/',
|
||||||
// 获取当前页面地址的系统变量 默认为REQUEST_URI
|
// 获取当前页面地址的系统变量 默认为REQUEST_URI
|
||||||
'url_request_uri' => 'REQUEST_URI',
|
'url_request_uri' => 'REQUEST_URI',
|
||||||
// 基础URL路径
|
// 基础URL路径
|
||||||
@@ -37,29 +65,26 @@ return [
|
|||||||
'url_parmas_bind_type' => 0,
|
'url_parmas_bind_type' => 0,
|
||||||
//url地址的后缀
|
//url地址的后缀
|
||||||
'url_deny_suffix' => '',
|
'url_deny_suffix' => '',
|
||||||
//是否必须使用路由
|
// 是否开启路由
|
||||||
|
'url_route_on' => true,
|
||||||
|
// 是否强制使用路由
|
||||||
'url_route_must' => false,
|
'url_route_must' => false,
|
||||||
|
// URL模块映射
|
||||||
|
'url_module_map' => [],
|
||||||
|
|
||||||
// 默认输出类型
|
// +----------------------------------------------------------------------
|
||||||
'default_return_type' => 'html',
|
// | 视图及模板设置
|
||||||
// 默认语言
|
// +----------------------------------------------------------------------
|
||||||
'default_lang' => 'zh-cn',
|
|
||||||
// 是否使用session
|
|
||||||
'use_session' => true,
|
|
||||||
|
|
||||||
// 默认跳转页面对应的模板文件
|
// 默认跳转页面对应的模板文件
|
||||||
'dispatch_jump_tmpl' => THINK_PATH . 'tpl/dispatch_jump.tpl',
|
'dispatch_jump_tmpl' => THINK_PATH . 'tpl/dispatch_jump.tpl',
|
||||||
// 默认AJAX 数据返回格式,可选JSON XML ...
|
// 默认的模板引擎
|
||||||
'default_ajax_return' => 'JSON',
|
|
||||||
// 默认JSONP格式返回的处理方法
|
|
||||||
'default_jsonp_handler' => 'jsonpReturn',
|
|
||||||
'var_jsonp_handler' => 'callback',
|
|
||||||
'template_engine' => 'think',
|
'template_engine' => 'think',
|
||||||
'action_bind_class' => false,
|
|
||||||
'url_module_map' => [],
|
|
||||||
'response_exit' => true,
|
|
||||||
|
|
||||||
/* 错误设置 */
|
// +----------------------------------------------------------------------
|
||||||
|
// | 异常及错误设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
// 异常页面的模板文件
|
// 异常页面的模板文件
|
||||||
'exception_tmpl' => THINK_PATH . 'tpl/think_exception.tpl',
|
'exception_tmpl' => THINK_PATH . 'tpl/think_exception.tpl',
|
||||||
// 错误显示信息,非调试模式有效
|
// 错误显示信息,非调试模式有效
|
||||||
@@ -69,11 +94,19 @@ return [
|
|||||||
// 显示错误信息
|
// 显示错误信息
|
||||||
'show_error_msg' => false,
|
'show_error_msg' => false,
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 日志设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
'log' => [
|
'log' => [
|
||||||
'type' => 'File',
|
'type' => 'File',
|
||||||
'path' => LOG_PATH,
|
'path' => LOG_PATH,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 缓存设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
'cache' => [
|
'cache' => [
|
||||||
'type' => 'File',
|
'type' => 'File',
|
||||||
'path' => CACHE_PATH,
|
'path' => CACHE_PATH,
|
||||||
@@ -81,13 +114,20 @@ return [
|
|||||||
'expire' => 0,
|
'expire' => 0,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 会话设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
'session' => [
|
'session' => [
|
||||||
'prefix' => 'think',
|
'prefix' => 'think',
|
||||||
'type' => '',
|
'type' => '',
|
||||||
'auto_start' => true,
|
'auto_start' => true,
|
||||||
],
|
],
|
||||||
|
|
||||||
/* 数据库设置 */
|
// +----------------------------------------------------------------------
|
||||||
|
// | 数据库设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
'database' => [
|
'database' => [
|
||||||
// 数据库类型
|
// 数据库类型
|
||||||
'type' => 'mysql',
|
'type' => 'mysql',
|
||||||
@@ -120,7 +160,11 @@ return [
|
|||||||
// 指定从服务器序号
|
// 指定从服务器序号
|
||||||
'slave_no' => '',
|
'slave_no' => '',
|
||||||
],
|
],
|
||||||
/* SocketLog 调试 */
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | SocketLog设置
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
'slog' => [
|
'slog' => [
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
//是否显示利于优化的参数,如果允许时间,消耗内存等
|
//是否显示利于优化的参数,如果允许时间,消耗内存等
|
||||||
@@ -130,6 +174,6 @@ return [
|
|||||||
//日志强制记录到配置的client_id
|
//日志强制记录到配置的client_id
|
||||||
'force_client_id' => '',
|
'force_client_id' => '',
|
||||||
//限制允许读取日志的client_id
|
//限制允许读取日志的client_id
|
||||||
'allow_client_ids' => array(),
|
'allow_client_ids' => [],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user