Eariler I happily used the following code for creating form elements (inside Zend_Form descendant):
//Set for options
$this->setOptions(array(
'elements' => array(
'title' => array(
'type' => 'text',
'options' => array(
'required' => true,
'label' => 'Title',
'filters' => array('StringTrim'),
'validators' => array(
array('StringLength', false, array('minLength'=>1, 'maxLength'=>50)),
),
)
)
));
But now I've noticed that validators are not working.. I suspect this might be due to zend updates..
Does anyone face this problem?