On Jul 27, 8:54 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> 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()?
>
> Tryhttp://www.sanisoft.com/blog/2007/06/26/attach-detach-behaviors-at-ru...

That's a lot of code ;), do you have an example of when you would want
to attach a 'new' behavior to a model as opposed to turn a behavior
that the model has on and off?

Cheers,

AD


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

Reply via email to