Try use the third param in Save action.
like this:

$this->User->save(   $this->data,  // make sure there is a "id" in data
array
   true,
   array('email') //just save email
)



2009/3/13 kaushik <[email protected]>

>
> I have validate different field using cakephp's in-bulit validation
> system. but now problem is that the system does not persist all the
> values even if they are valid, e.g in a form, i have to give name,
> email, state, and the value given in email is not valid, but other
> values given in the field is valid. But when the system is reloading
> the form with the error massage, all the fields are blanks. I want to
> persist the valid values so that the user has to enter just invalid
> data.
> >
>

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