Ejemplo n.º 1
0
 public function __construct()
 {
     $this->view = View::getInstance();
     $this->session = Session::getInstance();
     $this->redirect = Redirect::getInstance();
     $this->validation = Validation::getInstance();
     $this->auth = Auth::getInstance();
 }
Ejemplo n.º 2
0
 /**
  * @param $path
  * @return $this
  * @var \SSFrame\Redirect
  */
 public static function to($path)
 {
     return \SSFrame\Redirect::getInstance()->to($path);
 }