Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 ZEND 框架中处理表单输入的长度?
我想在我的 zend 表单元素中最多包含 4 个字符
可能重复 试试这个大小:
$element = new Zend_Form_Element_Text('test') $element->setAttrib('size', '4');
您可能还想查看 ZF“使用 Zend_Form_Element 创建表单元素”文档:链接