开发者

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

开发者 https://www.devze.com 2023-02-27 01:05 出处:网络
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

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

精彩评论

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