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.
精彩评论