I'm share the same idea that a notificaion class (a model) is needed. The question is where to call the methods of this class?
Application_Model_Notifier::sendMail($args); Where to put this? in controller or model? On Tue, Feb 22, 2011 at 3:07 PM, Simon Walter <[email protected]> wrote: > On Tuesday, February 22, 2011, Serkan Temizel wrote: > > I need to send notification e-mails to users. These notifiers are about > > what other users do. (Like Facebook's comment notification mails.) > > > > Which one do you think is best practice, send mail from Controller or > Model > > ? > > 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. >
