예제 #1
0
 public function before()
 {
     parent::before();
     if (!Auth::check()) {
         Response::redirect('login');
     }
 }
예제 #2
0
파일: base2.php 프로젝트: sysdevbol/entidad
 public function before()
 {
     parent::before();
     I18n::lang('es');
     //  Cookie::$salt = 'eqw67dakbs';
     //  Session::$default = 'cookie';
     $this->session = Session::instance();
     $this->template->title = '';
     $this->template->page_title = '';
     $this->template->styles = array();
     $this->template->scripts = array();
     $this->template->menu = null;
     $this->template->info = null;
     $this->template->block_left = null;
     $this->template->content = null;
     $this->template->block_right = null;
 }