On 2/1/07, indoven <[EMAIL PROTECTED]> wrote: > > What is the recommended approach for an AfterSave function triggering > and sending an email notification on a saved or submitted form? Thanks.
I personally prefer doing this in the Controller as I tend to use a component to send emails. Keeps the Model free of any dependencies If at all you want to do this with the Model then I would suggest make the Model Observable and the Email component should be an Observer Cheers Tarique -- ============================================================= PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org ============================================================= --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
