Friday, July 3, 2009

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

Hi Carlos,

Yes, I can use the model's callback method (aftersave and afterdelete)
but then, since this would require writing to another table, which
means call to other model from inside a model, wouldn't this break the
MVC pattern?

Regards,
Hendry

On Sat, Jul 4, 2009 at 12:47 AM, Carlos Gonzalez
Lavin<carloslavin07@gmail.com> wrote:
> 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

--~--~---------~--~----~------------~-------~--~----~
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: