Say I create a text element like this:
$firstName = new Zend_Form_Element_Text(\'firstName\');
$firstName->setRequired(true);
Whats
Try
->addValidator('Digits', false);
or
->addValidator('Digits');
You assume that to check Digits it has to have a string length anyway.
Also, I like to do some custom error messages like this:
$firstName->getValidator('NotEmpty')->setMessage('Please enter your first name');
This allows you to "get" the validator and then "set" properties of it.