There is no OR operation when validating fields... I think your two
options are to either not require the filed, i.e 'required'=>false as
part of your rule or to write a custom validator function to do what
you want.

On Tue, Aug 3, 2010 at 8:25 AM, rez...@gmail.com <rez...@gmail.com> wrote:
> hi
> I have a form with three fields and I need to validate it
> I just need if user fill any field the form submit successfully and if
> he doesn't fill any field validation error appears
> I want to make this with model validation but I can't find thing to
> act like OR
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> 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
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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