On Tuesday, February 22, 2011, Jurian Sluiman wrote:
> On Tuesday 22 Feb 2011 14:07:26 Simon Walter wrote:
> > Fat model and skinny controller:
> > http://www.google.com/search?q=fat+model+skinny+controller
> > 
> > I'm sure others will have a better reading resource for you.
> > 
> > So make a "notification" model that handles notifications. If you need
> > to, you can add other types of notifications later.
> > 
> > Don't do this kind of stuff directly in the controller.
> 
> It is a bad idea to reply to users with only the term "fat model skinny
> controller". 

Perhaps you missed the other 4 lines. If you don't know where to call methods 
from, it really is a good time to start reading some basic MVC material, don't 
you think?

> Most inexperienced users will put their email functionality in
> the Application_Model_* entities which seems as incorrect as placing it
> inside controller to me.

It is no way near as incorrect. Application_Model_* and Application_Services_* 
are no different from Application_Foobar_*. Is it not? Correct me if I'm wrong, 
but that only serves as another name space for general classes. Controllers 
are something quite different and not really general classes, as they have a 
lot to do with routing, requests, etc. Again, correct me if I'm wrong, as I 
probably have no where near as much experience with ZF as you do.

Reply via email to