改进App、Error和View类

改进Log类 简化驱动类的定义
This commit is contained in:
thinkphp
2013-04-02 17:46:26 +08:00
parent 083b312c96
commit 64c976e11d
5 changed files with 79 additions and 86 deletions

View File

@@ -43,7 +43,7 @@ class Error {
case E_COMPILE_ERROR:
case E_USER_ERROR:
$errorStr = "[$errno] $errstr ".$errfile."$errline 行.";
Log::write($errorStr,'ERROR');
Log::record($errorStr,'ERROR');
self::halt($errorStr);
break;
case E_STRICT: