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 before() { parent::before(); }
/** * The before() function will be used to check Auth and ACL * to ensure we're allowed in here.... * * @return void */ public function before() { //if all passes, call the parent before() parent::before(); }
public function before() { parent::before(); $this->_breadcrumbs = Breadcrumbs::getInstance(); $this->_assets = Asset::instance(); }