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