public function after() { $referrer = Request::current()->referrer(); if ($referrer === NULL or $_SERVER['HTTP_HOST'] != parse_url($referrer, PHP_URL_HOST)) { $referrer = URL::base(); } $this->template->set_filename('error')->set('BACK_URL', $referrer); parent::after(); }
public function after() { View::set_global('CATEGORY', $this->category); parent::after(); }