Zend Framework - validators are not working anymore?
        Posted  
        
            by Pavel Dubinin
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Pavel Dubinin
        
        
        
        Published on 2010-04-15T08:26:59Z
        Indexed on 
            2010/04/15
            8:33 UTC
        
        
        Read the original article
        Hit count: 466
        
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?
© Stack Overflow or respective owner