On Dec 30, 2007 6:40 PM, webjay <[EMAIL PROTECTED]> wrote:
>
>
> _snippet from controller_
> $password = $sanitize->escape($this->data['User']['password']);
> $this->User->id = $this->Session->read('userid');
> $this->User->password = $password;
> $this->User->save();
>
You're doing the saving stuff just a little bit wrong I think. Try this:
$password = $sanitize->escape($this->data['User']['password'];
$this->User->id = $this->Session->read('userid');
$this->User->save($this->data);
Hope that helps.
--
Chris Hartjes
My motto for 2007: "Just build it, damnit!"
@TheKeyboard - http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---