I have an array of data that I want to validate. Like this:

$this->data['Model'][0]['field1']
$this->data['Model'][0]['field2']
$this->data['Model'][0]['field3']
$this->data['Model'][1]['field1']
$this->data['Model'][1]['field2']
$this->data['Model'][1]['field3']
$this->data['Model'][2]['field1']
$this->data['Model'][2]['field2']
$this->data['Model'][2]['field3']

All the rules are set up (and working) to. The only problem is that I
want to use certain rules only if certain conditions are satisfied.
For instance:

Validate field2 and field3 only if field1 = 1

I already have a function to delete, keep rules on the fly, but this
is not on a per record basis :-( Is there any way to accomplish that?
Have a per record $validate array?

PS; I found the ConditionalValidation behavior but I'm not sure that
does the trick for me

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