本文整理汇总了PHP中App\Controller\AppController::afterFilter方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::afterFilter方法的具体用法?PHP AppController::afterFilter怎么用?PHP AppController::afterFilter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类App\Controller\AppController
的用法示例。
在下文中一共展示了AppController::afterFilter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: afterFilter
/**
* 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
}
示例2: afterFilter
/**
* (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');
}