改进Config类和App类 Lange类

支持扩展配置文件分离
This commit is contained in:
thinkphp
2015-12-01 19:47:57 +08:00
parent 2375e257b3
commit 5f1fe79e17
11 changed files with 145 additions and 116 deletions

View File

@@ -5,12 +5,12 @@ return [
'app_status' => 'debug',
// PATHINFO变量名 用于兼容模式
'var_pathinfo' => 's',
'extra_config_list' => [],
// 兼容PATH_INFO获取
'pathinfo_fetch' => 'ORIG_PATH_INFO,REDIRECT_PATH_INFO,REDIRECT_URL',
// 扩展配置文件
'extra_config_list' => ['database', 'route'],
// pathinfo分隔符
'pathinfo_depr' => '/',
// 是否显示模块
'require_module' => true,
// 默认模块名
'default_module' => 'index',
// 默认控制器名
@@ -43,9 +43,9 @@ return [
'default_jsonp_handler' => 'jsonpReturn',
'var_jsonp_handler' => 'callback',
'template_engine' => 'think',
'common_module' => 'common',
'action_bind_class' => false,
'url_module_map' => [],
'response_exit' => true,
/* 错误设置 */
//错误显示信息,非调试模式有效