示例#1
0
 public function after()
 {
     $auth = Auth::instance();
     if ($auth->get_user()) {
         $user = ORM::factory('users', $auth->get_user());
     }
     $this->template->user = $user;
     parent::after();
 }
示例#2
0
 public function after()
 {
     $auth = Auth::instance();
     if ($auth->get_user()) {
         $user = ORM::factory('users', $auth->get_user());
     } else {
         $this->request->redirect('/login');
     }
     $this->template->user = $user;
     parent::after();
 }
示例#3
0
 public function before()
 {
     parent::before();
     $this->template->page_title = 'Archivo de Gestion';
 }