Exemplo n.º 1
0
 public function before()
 {
     if (defined('IS_ADMIN') && IS_ADMIN) {
         $this->template = 'admin::template';
     }
     parent::before();
 }
Exemplo n.º 2
0
 public function before()
 {
     if (!Auth::instance()->logged_in()) {
         $this->redirect('/');
     }
     parent::before();
 }
Exemplo n.º 3
0
 public function before()
 {
     $returnData = parent::before();
     if (Model_User::is_current_user('teacher')) {
         Response::redirect('site/404');
     }
     return $returnData;
 }
Exemplo n.º 4
0
 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'));
 }
Exemplo n.º 5
0
 public function before()
 {
     if (!conf('auth.isEnabled')) {
         throw new \HttpNotFoundException();
     }
     parent::before();
     if (!isset($this->_config)) {
         $this->_config = Config::load('opauth', 'opauth');
     }
 }
Exemplo n.º 6
0
 public function before()
 {
     parent::before();
 }
Exemplo n.º 7
0
 /**
  * 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();
 }
Exemplo n.º 8
0
 public function before()
 {
     parent::before();
     $this->_breadcrumbs = Breadcrumbs::getInstance();
     $this->_assets = Asset::instance();
 }