Zend validators and error messages: addValidator and addErrorMessage

Neo Vlad Dracul

New Member
If I have a form element that has multiple validators attached to it (3 in this example), how would I use \[code\]addErrorMessage\[/code\] to create custom error messages when each unique validator fails. Is there a way to add a custom message for each validator?\[code\]$element = new Zend_Form_Element_Text()...$element->.... ->addValidator(...) ->addValidator(...) ->addValidator(...) ->addErrorMessage()\[/code\]
 
Top