How to handle th开发者_JAVA百科e lengh of a form input in ZEND framework?
I would like to have a max of 4 characters in my zend form element
Possible duplicate Try this for size :
$element = new Zend_Form_Element_Text('test')
$element->setAttrib('size', '4');
You may want to have a look at the ZF "Creating Form Elements Using Zend_Form_Element" documentation too : link
精彩评论