Hi,

> I am having a weird problem with a new model behavior I am trying to
> implement. When I try to pass a value ($data) into the model behavior
> function the passed value is replaced with the model object. The
> passed value is a string before $this->enCrypt() is called, but within
> the behavior function $data contains the model's object. Here is my
> code:

It's not that weird, it's intentional - the first param is always the
model that calls the method, have a read up on
http://book.cakephp.org/view/595/Creating-Behaviors

Cheers,

Jon



-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

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