View Single Post
  #1 (permalink)  
Old 04-27-2008, 06:21 PM
joshmattvander joshmattvander is offline
Junior Member
 
Join Date: Apr 2008
Posts: 2
Default 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.
Reply With Quote