public function before() { if (defined('IS_ADMIN') && IS_ADMIN) { $this->template = 'admin::template'; } parent::before(); }
public function before() { if (!Auth::instance()->logged_in()) { $this->redirect('/'); } parent::before(); }
public function before() { $returnData = parent::before(); if (Model_User::is_current_user('teacher')) { Response::redirect('site/404'); } return $returnData; }
public function before() { parent::before(); if (!FBD_FACEBOOK_APP_ID) { throw new HttpNotFoundException(); } Config::load('facebook', 'facebook'); $this->fb = new Facebook(Config::get('facebook.init')); }
public function before() { if (!conf('auth.isEnabled')) { throw new \HttpNotFoundException(); } parent::before(); if (!isset($this->_config)) { $this->_config = Config::load('opauth', 'opauth'); } }
public function after() { View::set_global('title', $this->title); View::set_global('keywords', $this->keywords); View::set_global('meta_title', $this->meta_title); View::set_global('meta_description', $this->meta_description); View::set_global('og_title', $this->og_title); View::set_global('og_image', $this->og_image); View::set_global('og_description', $this->og_description); View::set_global('twitter_title', $this->twitter_title); View::set_global('twitter_image', $this->twitter_image); View::set_global('twitter_description', $this->twitter_description); View::set_global('asets', $this->_assets->render()); View::set_global('breadcrumbs', $this->_breadcrumbs); parent::after(); }
public function before() { parent::before(); }
public function after() { parent::after(); }