Friday, July 3, 2009

Re: Write to log table for every successful update/delete

I don't know if these applies to you... but saves (I don't know if just valid ones) do a callback to the model's aftersave function (either inserts or updates)

A bit more info on it:
http://book.cakephp.org/view/684/afterSave

2009/7/3 satyavirya <hendry.htc@gmail.com>

Hi guys, my app need to write into a log table for every successful
update/delete operation, my current approach is to put the code in
AfterFilter in AppController, the problem is, how do I get / know a
successful update/delete has been done?
Or is there any other suggestions to do this? Thanks.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: