Hi,
I'd like to know if there is possible to check in the CakePHP model class if a certain field has validated in the process.
An example: 2 fields - field_one and field_two. field_one must not be empty, but field_two must contain a value that matches a regular expression pattern. What i need to do is if field_one is empty (fails to validate), field_two also fails validation even if it's filled correctly. If field_one is filled, field_two gets normal reg exp pattern validation, but of the field_one fails to validate, field_two automatically fails too, no matter what's in it.
Thanks