On 7/27/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote: > > > Say, if Model has two methods, Model::add() and Model::save() and a > "foo" behavior is added to the "Model". Currently the foo behavior is > getting triggered for every Model access. Is there anyway to limit the > trigger--say, only for Model::add()?
Try http://www.sanisoft.com/blog/2007/06/26/attach-detach-behaviors-at-run-time-in-cakephp-models/ HTH Tarique -- ============================================================= Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
