示例#1
0
 public function before()
 {
     if (false == $this->app->auth->logged_in($this->login_role) && $this->redirect_uri != $this->request->uri()) {
         $this->redirect($this->redirect_uri);
     }
     parent::before();
 }
示例#2
0
 public function before()
 {
     if ($this->controller instanceof Layout) {
         $layout = $this->controller->get_layout();
         $layout->admin_menu = $this->menu_items;
     }
     parent::before();
 }
示例#3
0
 public function before()
 {
     parent::before();
 }