-- Samuel Verdier <[EMAIL PROTECTED]> wrote
(on Tuesday, 05 August 2008, 03:43 PM +0200):
> In use addError('test');
>
> And : $form->isValid($formData); retour true.
>
> Is this normal?
Yes. The use case for addError() is to add an error message to the
element or form. isValid() is for validating the various form elements.
Adding an error message is not indicative of the actual validations
performed.
> So I do :
>
> if (count($form->getMessages()) == 0 && $form->isValid($formData)) {
> echo 'OK';
> }
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/