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')); }
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')); }