Пример #1
0
 public static function V500($errno, $errstr, $errfile, $errline, $errcontext)
 {
     $error = self::SFormatError($errno, $errstr, $errfile, $errline, $errcontext);
     $render = new Ko_View_Render_TEXT();
     $render->oSetData('error', $error);
     Ko_Web_Response::VSetHttpCode(500);
     Ko_Web_Response::VAppendBody($render);
     Ko_Web_Response::VSend();
 }
Пример #2
0
 public static function V404()
 {
     $error = 'File: ' . self::$s_sFile . "\n" . 'Func: ' . self::$s_sFunc . "\n" . 'Method: ' . self::$s_sMethod . "\n" . 'Errno: ' . self::$s_iErrno . "\n" . 'Error: ' . self::$s_aError[self::$s_iErrno];
     $render = new Ko_View_Render_TEXT();
     $render->oSetData('error', $error);
     Ko_Web_Response::VSetHttpCode(404);
     Ko_Web_Response::VSetContentType('text/plain');
     Ko_Web_Response::VAppendBody($render);
     Ko_Web_Response::VSend();
 }