Esempio n. 1
0
 public function before()
 {
     parent::before();
     \Theme::instance()->active('admin');
     \Theme::instance()->set_template($this->template);
     // Assign current_user to the instance so controllers can use it
     $this->current_user = \Sentry::check() ? \Sentry::user() : null;
     // Set a global variable so views can use it
     \View::set_global('current_user', $this->current_user);
 }
Esempio n. 2
0
 public function before()
 {
     parent::before();
     $this->is_admin();
 }
Esempio n. 3
0
 public function before()
 {
     parent::before();
 }