Adding a constructor to the controller
Hey guys, I wrote an MVC framework a while back but I am migrating to Zend.
One of the things I used to do is have a constructer in my controllers in which I could write code that applies to all the actions within the controller.
For example...
the Account controller would have a lockout function within the constructor. Unstead of locking out each action individually.
Any thoughts on this?
Thanks.
|