改进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

@@ -99,7 +99,7 @@ class Error
$data['code'] = $code;
$data['msg'] = $message;
$data['time'] = NOW_TIME;
Response::returnData($data);
exit(Response::returnData($data));
}
$e = [];
if (APP_DEBUG) {
@@ -129,7 +129,7 @@ class Error
}
}
// 包含异常页面模板
include Config::get('exception_tmpl');
exit;
$data = include Config::get('exception_tmpl');
exit(Response::returnData($data));
}
}