public function after($response) { View::set_global('__header__', View::forge('partials/header', $this->template->get())); View::set_global('__footer__', View::forge('partials/footer', $this->template->get())); // View::set_global('__alertbox__', View::forge('partials/alertbox', array('_alert'=>\Messages::get())) ); return parent::after($response); }
public function after($response) { if (!empty($this->view)) { $this->template->content = View::forge($this->view, $this->data); } return parent::after($response); }
public function after($response) { $response = parent::after($response); if (Uri::Current() != Uri::Create('login')) { if (Settings::get('maintenance_mode') === true) { if (!Auth::member(5)) { $this->template->content = View::Forge('core/maintenance'); } elseif (Uri::Current() != Uri::Create('admin/settings')) { // YOUR GOOD Response::Redirect(Uri::Create('admin/settings')); } } } return $response; }
/** * @param Response $response * @return mixed */ public function after($response) { View::set_global('__header__', View::forge('partials/header', array())); View::set_global('__footer__', View::forge('partials/footer', array())); return parent::after($response); }
public function after($response) { View::set_global('__sidebar__', View::forge('partials/sidebar', $this->formatData($this->side_data))); View::set_global('__footer__', View::forge('partials/footer', $this->formatData($this->side_data))); return parent::after($response); }