nwhiting wrote:
> 
> I have a question about this.....
> 
> Does Zend_Validate work on a per element basis and is not parsed when you
> call 
> $this->form->isValid($_POST);
> ??
> 
> When I add custom validations are they going to be parsed and produce
> error messages to the errorMessage string? 
> 
> Such as all of my form elements are created automatically, the helpers,
> views and validation based off of one method now inside of that method I
> create the validation such as this
> 
> $element->addPrefixPath('Validator', 'Validator', 'validate');
> 
>         switch($validater)
>         {
>             case 'username':
>                 $element->addValidator(new Validator_Username($db));
>                 $element->setRequired(true);
>                 break;
>             case 'email':
>                 $element->addValidator(new Zend_Validate_EmailAddress());
>                 $element->setRequired(true);
>             break;
> 
>             case 'password':
>                 $element->addValidators(array(
>                                               array('validator' =>
> 'NotEmpty'),
>                                               array('stringLength', false,
> array(4, 20))
>                                               ));
>                 $element->setRequired(true);
>                 break;
>             case 'confirm':
>                 $element->addValidator(new Validator_Password_Confirm());
>                 break;
> 
>         }
> 
> shouldn't this return any error messages set within those validators?
> As even Zend_Validate_EmailAddress does not return any error, and my
> custom validators are setup just as defined in the documentation
> 


Anyone have any idea on this pleasE?

-----
Nickolas Whiting 

Developer 

http://xstudiosinc.com Xstudios 
-- 
View this message in context: 
http://www.nabble.com/Zend_Validate-tp20440899p20481622.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to