Thanks,

I will add that and see what shows up.

Dave 

-----Original Message-----
From: Marcelo Andrade [mailto:[email protected]] 
Sent: September-15-09 3:32 PM
To: [email protected]
Subject: Re: Why will this not save?

On Mon, Sep 14, 2009 at 7:48 PM, Dave Maharaj :: WidePixels.com
<[email protected]> wrote:
> (..)
>                   if ($this->User->save($this->data, true, 
> array_intersect(array_keys($this->User->schema()), $white))) {
>                       $this->Session->setFlash(__('Password Changed.', 
> true));
>                       $this->render('password_changed');
>                   } else {
>                       $this->Session->setFlash(__('Error.', true));
>                       $this->render('password_changed_error');
>                   }
>               }
> Where am I going wrong?

Call pr($this->User->invalidFields()); exit; inside the else block to see if
there's some validation issues.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com




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