【发布时间】:2011-11-14 16:00:11
【问题描述】:
我想在字段集中包含一些表单元素。 如何在 Zend Form XML 中执行此操作?
我的 XML 文件:
<elements>
<nom>
<type>text</type>
<options>
<label>Nom, Prénom</label>
<width>100</width>
<required>true</required>
</options>
</nom>
<email>
<type>text</type>
<options>
<label>Email</label>
<description>Votre email</description>
<width>100</width>
<validators>
<email>
<validator>EmailAddress</validator>
</email>
</validators>
</options>
</email>
<message>
<type>textarea</type>
<options>
<label>Message</label>
<cols>20</cols>
<rows>5</rows>
<required>true</required>
</options>
</message>
</elements>
首先,是否可以在 Zend Form XML 中创建字段集? 如果可能的话,如何将其中一些元素放入? 非常感谢!
【问题讨论】:
标签: xml zend-framework zend-form