I believe this feature works only within the scope of a single element validation. I may be misunderstanding how it works, but I believe it means that if the first validation fails, it stops validating and outputs only the first validation error message.
What I am looking for is a way to break out of all form validation if an element fails. If several fields have validators set, and the first field fails its check, then I'd like the $form->isValid($data) to exit the validation loop that takes it through the remaining elements. I don't see a way to do this within the functions provided in ZF unless I am missing something. Am I missing something?
Seth Atkins
没有评论:
发表评论