I've actually completed most of the work in an Mcrypt Behavior.  I
need to finish up a few things and get automatic decryption working
for related models.  You're more than welcome to see my code if you'd
like (I intend to share it on the Bakery when I'm sure it's as close
to done as I can get it).  Just email me directly if you'd like it.

You can take a look at core behaviors to see how they've done similar
methods that need to be accessible from the controller or model (and
not the class).

On Jul 8, 3:20 pm, mehodgson <mehodg...@gmail.com> wrote:
> Du'oh...my bad...forgot about that. It's been a while since I have
> written a behavior.  Thanks.
>
> On Jul 8, 12:01 pm, Jon Bennett <jmbenn...@gmail.com> wrote:
>
>
>
> > 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 
> > onhttp://book.cakephp.org/view/595/Creating-Behaviors
>
> > Cheers,
>
> > Jon
>
> > --
>
> > jon bennett
> > w:http://www.jben.net/
> > iChat (AIM): jbendotnet Skype: jon-bennett- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to