예제 #1
0
 function error404($params)
 {
     $this->controller->layout = "anony";
     $installed = true;
     $File = new File(TMP . 'install');
     if ($File->exists()) {
         $installed = false;
     }
     if (!$installed) {
         $this->_outputMessage('install');
     } else {
         parent::error404($params);
     }
 }
예제 #2
0
 public function error404($params)
 {
     parent::error404($params);
     $this->controller->layout = "www";
 }
예제 #3
0
 /**
  * error for miss anything
  * @param $param
  */
 public function error404($params)
 {
     if (isset($params['html'])) {
         $this->controller->html = $params['html'] !== false;
         unset($params['html']);
     }
     if ($this->controller->html && $this->controller->RedirectAcl->isRedirect()) {
         $this->controller->notice[] = array("url" => "", "text" => "该页面不存在");
         $this->controller->brief = true;
         $this->controller->base = Configure::read('site.prefix');
         $this->controller->set($params);
     } else {
         $this->controller->header('HTTP/1.0 404 Not Found');
         $this->controller->header('Content-Type:text/html;charset=' . $this->controller->encoding);
         if (!empty($params['code'])) {
             echo $params['code'] . ':';
         }
         echo $params['msg'];
         $this->controller->_stop();
     }
     parent::error404($params);
 }
 function error404($params)
 {
     $this->catch404();
     $this->runLevenshtein();
     parent::error404($params);
 }
예제 #5
0
 function error404($params)
 {
     $this->controller->layout = "error";
     parent::error404($params);
 }
예제 #6
0
 function error404($params)
 {
     $this->controller->plugin = basename(dirname(__FILE__));
     $this->controller->layout = 'noswad_error';
     parent::error404($params);
 }
예제 #7
0
 public function error404($params)
 {
     $this->controller->redirect(array('controller' => 'pages', 'action' => 'index', 'error'));
     parent::error404($params);
 }
예제 #8
0
 function error404($params)
 {
     header("HTTP/1.0 404 Not Found");
     $this->controller->redirect(array('controller' => 'showerror', 'action' => '/'));
     parent::error404($params);
 }