public function __construct(View $page = NULL) { if (is_null($page)) { $views = View::findFromType('404'); $page = array_shift($views); } parent::__construct(__('The page you requested does not exist.'), __('Page Not Found'), $page, array('header' => 'HTTP/1.0 404 Not Found')); }
public function __construct() { parent::__construct(__('You do not have permission to access this page.'), __('Forbidden'), NULL, array('header' => 'HTTP/1.0 403 Forbidden')); }
/** * The render function will take a SymphonyErrorPage Exception and * output a HTML page. This function first checks to see if their is a custom * template for this Exception otherwise it reverts to using the default * `tpl.error.php` * * @param SymphonyErrorPage $e * The Exception object * @return string * An HTML string */ public static function render($e) { if ($e->getTemplate() === false) { echo '<h1>Symphony Fatal Error</h1><p>' . $e->getMessage() . '</p>'; exit; } include $e->getTemplate(); }
public function __construct($page = NULL) { parent::__construct(__('The page you requested does not exist.'), __('Page Not Found'), $page, array('header' => 'HTTP/1.0 404 Not Found')); }