Hello, how to handle the lengh of a form input in ZEND FRAMEWORK.K I WOULD LIKE TO HAVE A MAX OF 4 characters in my zend form element ! Thank you in advance
A:
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 documentation too : link
piddl0r
2010-09-21 09:14:29
thank you, wonderful ! it works
Mamadou
2010-09-21 09:19:28
tx, it works fine
Mamadou
2010-09-22 11:52:51