Hi there I meant a common class the controllers can extend to reuse some
functionality, ie getting the registries set in the bootstrap , etc.
Then it means its only editable in one spot. Maybe via a plugin ?
Karol Grecki wrote:
Dan
You mean a class with some useful functions you can inherit from? Really bad
idea.
Besides controllers already inherit from from other class and bootstrap is
just a file.
Putting unrelated functionality into a single class is also not very OOP
friendly.
Instead, try using zend registry to store session and auth object.
Karol
Dan Rossi-5 wrote:
Hi there I was wondering if it was possible to have a baseclass for all
controllers, or a bootstrap, so thats its possible to contain reusable
methods for all controllers, IE session handling methods, authentication
etc.
Let me know.