public function __construct($layout, $seringue)
 {
     $this->layout = $this->set_layout($layout);
     $this->request = Kernel\Request::get_instance();
     $this->response = Kernel\Response::get_instance();
     $this->flash = Utilities\Flash::get_instance();
     $this->route = Kernel\Route::get_instance();
     $this->security = Kernel\Security::get_instance();
     $this->seringue = $seringue;
 }
Example #2
0
 public function __construct($view, $seringue)
 {
     $this->view = $view;
     $this->seringue = $seringue;
     $this->page = $this->seringue->page;
     $this->log = $this->seringue->log_nano;
     $this->dispatcher = Dispatcher::get_instance();
     $this->request = Request::get_instance();
     $this->response = Response::get_instance();
     $this->route = Route::get_instance();
     $this->flash = Utilities\Flash::get_instance();
     $this->security = Security::get_instance();
     $this->_init();
 }