|
@@ -33,7 +33,7 @@ require Qii_DIR . DS . 'Autoloader' . DS . 'Import.php';
|
|
\Qii\Autoloader\Import::setFileLoaded(Qii_DIR . DS . 'Autoloader' . DS . 'Import.php');
|
|
\Qii\Autoloader\Import::setFileLoaded(Qii_DIR . DS . 'Autoloader' . DS . 'Import.php');
|
|
|
|
|
|
\Qii\Autoloader\Import::requires(
|
|
\Qii\Autoloader\Import::requires(
|
|
- array(Qii_DIR . DS . 'Consts' . DS . 'Config.php',
|
|
|
|
|
|
+ array(Qii_DIR . DS . 'Config' . DS . 'Consts.php',
|
|
Qii_DIR . DS . 'Functions' . DS . 'Funcs.php',
|
|
Qii_DIR . DS . 'Functions' . DS . 'Funcs.php',
|
|
Qii_DIR . DS . 'Autoloader' . DS . 'Factory.php',
|
|
Qii_DIR . DS . 'Autoloader' . DS . 'Factory.php',
|
|
Qii_DIR . DS . 'Application.php',
|
|
Qii_DIR . DS . 'Application.php',
|
|
@@ -212,4 +212,4 @@ $namespace = _include(Qii_DIR . DS . 'Conf' . DS . 'namespace.php');
|
|
//捕获FATAL错误,用户可以选择记录到日志,还是直接显示或者不显示错误
|
|
//捕获FATAL错误,用户可以选择记录到日志,还是直接显示或者不显示错误
|
|
register_shutdown_function('catch_fatal_error');
|
|
register_shutdown_function('catch_fatal_error');
|
|
set_exception_handler(array('\Qii\Exceptions\Errors', 'getError'));
|
|
set_exception_handler(array('\Qii\Exceptions\Errors', 'getError'));
|
|
-set_error_handler(array('\Qii\Exceptions\Errors', 'getError'), E_USER_ERROR);
|
|
|
|
|
|
+set_error_handler(array('\Qii\Exceptions\Errors', 'getError'), E_USER_ERROR);
|