コード例 #1
0
 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'));
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct(__('You do not have permission to access this page.'), __('Forbidden'), NULL, array('header' => 'HTTP/1.0 403 Forbidden'));
 }
コード例 #3
0
 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'));
 }