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;
 }
Пример #2
0
 static function is($controller, $action = null)
 {
     $r = \NanoFramework\Kernel\Request::get_instance();
     $result = false;
     if ($r->get_parameter("controller") == $controller) {
         if ($action !== null && $action == $r->get_parameter("action") || $action === null) {
             $result = true;
         }
     }
     return $result;
 }