public function __construct()
 {
     $this->view = View::getInstance();
     $this->session = Session::getInstance();
     $this->redirect = Redirect::getInstance();
     $this->validation = Validation::getInstance();
     $this->auth = Auth::getInstance();
 }
Exemple #2
0
 public function displayError($error)
 {
     if ($error == 0) {
         $error = 500;
     }
     try {
         $view = View::getInstance();
         $view->display('errors.' . $error);
     } catch (\Exception $exc) {
         Common::headerStatus($error);
         echo '<h1>View errors.' . $error . ' not found</h1>';
         exit;
     }
 }
Exemple #3
0
 public static function appendToLayout($key, $template)
 {
     \SSFrame\View::getInstance()->appendToLayout($key, $template);
 }