Possible Duplicate:
Is a good idea have a BaseController and make all controllers extend that class?
I would like to know the benefits/purposes why you should extend your controllers from a BaseController. I see people doing it, but I just don’t know why.
I extended from a base controller in my first ZF project. In my opinion, it’s not a bad approach if you know that all your subclasses will always actually use the same common functionality of the superclass.
In any case, for my following projects, I switched to using Action Helpers and Controller Plugins (see Zend Framework: Controller Plugins vs Action Helpers), and I never looked back. They look much more flexible to me, and allow me to reuse some features from project to project. It also adheres more to the “Prefer composition over inheritance” principle (there’s a related question here: Prefer composition over inheritance?).
Hope that helps,