Example #1
0
 public function after($response)
 {
     $response = parent::after($response);
     // css jsのセット
     $this->template->set('css', $this->css, false);
     $this->template->set('js', $this->js, false);
     return $response;
 }
 public function after($response)
 {
     !\Request::is_hmvc() and $this->theme->get_template()->set_global($this->dataGlobal);
     // If nothing was returned set the theme instance as the response
     if (empty($response)) {
         $response = \Response::forge($this->theme);
     }
     if (!$response instanceof \Response) {
         $response = \Response::forge($response);
     }
     return parent::after($response);
 }
Example #3
0
 /**
  * After controller method has run, render the theme template
  *
  * @param  Response  $response
  */
 public function after($response)
 {
     if (!\Input::is_ajax()) {
         // If nothing was returned set the theme instance as the response
         if (empty($response)) {
             $response = \Response::forge(\Theme::instance());
         }
         if (!$response instanceof Response) {
             $response = \Response::forge($response);
         }
         return $response;
     }
     return parent::after($response);
 }