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); }
public function before() { parent::before(); $this->is_admin(); }
public function before() { parent::before(); }