/** * This method will be called after we route to the destinated method * * @access public * @param mixed $response * @return Response */ public function after($response) { Event::trigger('controller_after'); return parent::after($this->render_template($response)); }
/** * This method will be called after we route to the destinated method * * @access public * @param mixed $response * @return Response */ public function after($response) { Event::trigger('controller_after'); if (!$response instanceof \Response) { $response = $this->response; } return parent::after($response); }
/** * This method will be called after we route to the destinated method * * @access public * @param mixed $response * @return Response */ public function after($response) { Event::trigger('controller_after'); if (false === $this->rest) { $response = $this->render_template($response); } else { $response = $this->render_rest($response); } return parent::after($response); }
public function after($response) { // If no response object was returned by the action, if (empty($response) or !$response instanceof Response) { // render the defined template $response = \Response::forge(\Theme::instance()->render()); } return parent::after($response); }
/** * This method will be called after we route to the destinated method * * @access public */ public function after() { \Event::trigger('controller_after'); $this->_render_template(); return parent::after(); }
/** * This method gets called after the action is called. * * @param mixed $response Value returned from the action method. * * @return Response $response */ public function after($response) { // Return if passed a response. if ($response instanceof Response) { return parent::after($response); } if ($this->autorender) { try { $this->view->set_filename(Str::lower(str_replace('_', '/', Inflector::denamespace(str_replace('controller_', '', Str::lower($this->request->controller)))) . DS . str_replace('_', '/', $this->request->action))); } catch (FuelException $e) { } } // Inject view into the layout if the main request. if ($this->layout instanceof View) { if ($this->autorender) { try { // Throws exception if there is no view template found. $this->layout->content = $this->view->render(); } catch (FuelException $e) { } } $this->layout->content_data = $this->view->get(); $this->response->body($this->layout); } else { $this->response->body($this->view); } return parent::after($this->response); }
/** * This method will be called after we route to the destinated method * * @access public */ public function after() { \Event::trigger('controller_after'); return parent::after(); }
/** * This method will be called after we route to the destinated method * * @access public * @param mixed $response * @return Response */ public function after($response) { Event::trigger('controller_after'); return parent::after($response); }