private static function _clear() { self::$sql = null; self::$log = null; self::$start = null; self::$time = null; self::$server = null; self::$exception = null; self::$session = null; //self::$show; //self::$key; }
private function _showError($e) { $this->error and call_user_func($this->error, $e); if (DEBUG) { CxBug::exception($e); if (ob_get_level() > 0) { ob_clean(); } ob_start(); include PATH_CXMVC . DIRECTORY_SEPARATOR . 'tbl' . DIRECTORY_SEPARATOR . 'exception.tbl.php'; $error = ob_get_contents(); if ($error) { $this->response->write($error); ob_clean(); } } }