Say I create a text element like this:
$firstName = new Zend_Form_Element_Text(\'firstName\');
$firstName->setRequired(true);
Whats
But try this:
$firstName->setRequired(true)
->addValidator('NotEmpty', false, array('messages' => 'bar'))
->addValidator('Alpha', false, array('messages'=>'Must contain only letters'));
If left empty and submitted, itll give two messages bar & '' is an empty string. Its that second message thats coming from setRequired(true) thats the problem