Exemple #1
0
 /**
  * Not have permition to view this page
  */
 public function Not_have_Perm()
 {
     /** @noinspection PhpIncludeInspection */
     require_once controllers_dir() . default_error();
     $err = new error();
     $err->error403();
     exit;
 }
Exemple #2
0
 /**
  * getting error
  *
  * @param $code
  */
 public function _Error($code)
 {
     $file = controllers_dir() . default_error() . '.php';
     /** @noinspection PhpIncludeInspection */
     require_once $file;
     $this->_Controller = new error();
     switch ($code) {
         case 404:
             $this->_Controller->error404();
             break;
         case 403:
             $this->_Controller->error403();
             break;
         case 503:
             $this->_Controller->error503();
             break;
         default:
     }
     exit;
 }