protected function render_status($status, $html = true) { $this->response->set_status($status); $status_string = $status . ' ' . \zing\http\Constants::text_for_status($status); if ($html) { $this->render_html("<html><body><h1>{$status_string}</h1></body></html>"); } else { $this->render_text($status_string); } }
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title><?php echo $status; ?> <?php echo $string = \zing\http\Constants::text_for_status($status); ?> </title> </head><body> <h1><?php echo $string; ?> </h1> <?php if (isset($message)) { ?> <p><?php echo $message; ?> </p><?php } ?> <hr> <address><?php echo ZING_SIGNATURE; ?> </address> </body></html>