Re: Implementing the Event Notifier Pattern in CakePHP

2013-02-21 Thread lowpass
On Wed, Feb 20, 2013 at 8:49 AM, wrote: > > > On Wednesday, February 20, 2013 2:05:49 AM UTC+2, cricket wrote: >> >> >> Better to implement this in a component ... as long as your events >> will always be triggered from within a controller. That is, you won't >> be calling it in an afterDelete()

Re: Implementing the Event Notifier Pattern in CakePHP

2013-02-20 Thread david . suna
On Wednesday, February 20, 2013 2:05:49 AM UTC+2, cricket wrote: > > > Better to implement this in a component ... as long as your events > will always be triggered from within a controller. That is, you won't > be calling it in an afterDelete() callback. From the controller: > > $this->Notifi

Re: Implementing the Event Notifier Pattern in CakePHP

2013-02-19 Thread lowpass
On Tue, Feb 19, 2013 at 3:04 PM, wrote: > Does anyone have any advice as to how to go about implementing the Event > Notifier pattern in CakePHP 1.3? > > Basically, I want to have email notifications sent out when various events > occur (adding or deleting instances of specifi

Implementing the Event Notifier Pattern in CakePHP

2013-02-19 Thread david . suna
Does anyone have any advice as to how to go about implementing the Event Notifier pattern in CakePHP 1.3? Basically, I want to have email notifications sent out when various events occur (adding or deleting instances of specific models). The notifications can be sent to different e-mail