errorNumber = intval(e_QUERY); } $this->renderErrorPage(); } /** * Renders the error page. */ public function renderErrorPage() { switch($this->errorNumber) { case 400: e107::getError()->render(400); break; case 401: e107::getError()->render(401); break; case 403: e107::getError()->render(403); break; case 404: e107::getError()->render(404); break; case 500: e107::getError()->render(500); break; default: e107::getError()->render('unknown'); break; } } } require_once(HEADERF); new error_front(); require_once(FOOTERF);