public function __construct() { $this->view = View::getInstance(); $this->session = Session::getInstance(); $this->redirect = Redirect::getInstance(); $this->validation = Validation::getInstance(); $this->auth = Auth::getInstance(); }
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; } }
public static function appendToLayout($key, $template) { \SSFrame\View::getInstance()->appendToLayout($key, $template); }