Hi,

there is no need to use the afterDelete event, because the delete
function of the model class gives a return value. Depending on the
return value you can set the flash message.
Pls. have a look at the API: 
http://api.cakephp.org/class_model.html#680f1a7876f7be4d87308d4df3252e77

I hope this helps.

Brain


On 7 Sep., 23:23, seanislegend <[EMAIL PROTECTED]> wrote:
> Hey,
>
> after I delete from a DB something I want to set a Flash message
> saying if it's successfully been deleted or if there was an error.
>
> I'm not sure how to implement this with afterDelete. Any ideas?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to