开发者

maxlengh attribute in zend form element

开发者 https://www.devze.com 2023-01-17 03:33 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消