cakePHP的controller回调

1、 afterFilter(), executed after all controller logic, including the rendering of the view
2、 beforeFilter(), executed before any controller action logic
3、 beforeRender(), executed after controller logic, but before the view is rendered

 

afterFilter(),all controller(包括渲染view) 以后执行,

beforeFilter(),any controller 以前执行

beforeRender(),controller以后,渲染view以前,执行

posted @ 2016-05-18 14:23  做个好男人  阅读(222)  评论(0编辑  收藏  举报