Hi,

I have a couple of model services which handle all the stuff for a
model. For example the user model service can fetch data from the
TableGateway, handles forms (for registration) and connects to the
authentication service. So my controllers just correspond to this user
model service. Works nicely.

I just refactored my user model service to handle mail sending with the
EventManager to redruce the objects to be injected. Now I am thinking of
using the EventManager as well for doing some caching stuff. Since all
model services need caching more or less I won't have to pass around the
caching object. Just a registration in the EventManager and the model
services only need to trigger an event for reading from the cache and
writing to the cache.

What do others think? Is this good or rather bad practice. If bad how to
do solve caching? Any thoughts?

Regards,

Ralf

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to