Example #1
0
 /**
  * Called after the controller action is run and rendered.
  *
  * @param Event $event An Event instance
  * @return void
  * @link http://book.cakephp.org/3.0/en/controllers.html#request-life-cycle-callbacks
  */
 public function afterFilter(Event $event)
 {
     parent::afterFilter($event);
     // TODO: Change the autogenerated stub
 }
Example #2
0
 /**
  * (non-PHPdoc)
  * The third run
  *
  * @see Controller::afterFilter() @overwrite
  *      afterFilter run when action of controller is finished, afterFilter set again value and render again
  */
 public function afterFilter(Event $event)
 {
     parent::afterFilter($event);
     $this->set(array('result_code' => $this->result_code, 'result_detail' => $this->result_detail, 'result_error' => $this->result_error));
     $this->render('rest_client');
 }