public function before() { parent::before(); if (!Auth::check()) { Response::redirect('login'); } }
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; }