开发者

Where to place code that needs to be executed on every request in Kohana 3.1

In 开发者_StackOverflow社区Kohana 3.1, where is the best place to put code that needs to be be executed on every request? In my case, it needs to manage the ACL so that I can block the request if the user is not authorized.


Put it to Controller class, and implement its before() method.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜