Validators are not working anymore in Zend Framework?

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/06/14 12:42 UTC
Read the original article Hit count: 199

Filed under:
|
|

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

Related posts about php

Related posts about zend-framework