You can use 'on' => 'create' or 'on' => 'update' to gain a finer grain
of control. You can also set 'allowEmpty' => true for some fields.

See here:
http://teknoid.wordpress.com/2008/06/09/15-essential-cakephp-tips/
http://lemoncake.wordpress.com/2007/07/03/all-about-validation-in-cakephp-12/

On Mon, Mar 2, 2009 at 1:07 AM, [email protected]
<[email protected]> wrote:
>
> I am facing a problem about validation. In my user model there are 20
> validation for registration form. During registration validation works
> properly. But when any other action (i.e. update profile) under user
> controller there are only 8 fields to check validation from user model
> but it get failed. In this case when I removed others validation rule
> (from all 20) i.e. 12 out of 20 (only 8 from update profile action)
> then update profile action works. But I need all 20 rules within user
> model. Is there anyone to help me ?
>
> >
>

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