规范调整

This commit is contained in:
thinkphp
2015-10-03 21:43:48 +08:00
parent 7c2bcbcff2
commit 1cfb3704c6
31 changed files with 393 additions and 285 deletions

View File

@@ -11,10 +11,7 @@
namespace think;
//--------------------------
// ThinkPHP 引导文件
//--------------------------
// 加载基础文件
require __DIR__.'/base.php';
require CORE_PATH.'loader.php';
@@ -23,9 +20,9 @@ require CORE_PATH.'loader.php';
Loader::register();
// 注册错误和异常处理机制
register_shutdown_function(['think\Error','appShutdown']);
set_error_handler(['think\Error','appError']);
set_exception_handler(['think\Error','appException']);
register_shutdown_function(['think\error','appShutdown']);
set_error_handler(['think\error','appError']);
set_exception_handler(['think\error','appException']);
// 加载模式定义文件
$mode = require MODE_PATH.APP_MODE.EXT;