【问题标题】:How can I include fieldset in Zend Form XML如何在 Zend Form XML 中包含字段集
【发布时间】: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


    【解决方案1】:

    显然还不能指定字段集/子表单。见

    了解可能的解决方法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-07-19
      • 2015-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-08
      • 2021-12-27
      相关资源
      最近更新 更多