【问题标题】:How change order of label and input in form ZF1?如何更改表格ZF1中标签和输入的顺序?
【发布时间】:2015-10-07 13:21:55
【问题描述】:

我怎样才能进入 ZF1 单选表单元素:

<input id="rl-1" name="upload_from" type="radio" value="" checked>
<label for="rl-1">Dodaj z dysku</label>
<input id="rl-1" name="upload_from" type="radio" value="" checked>
<label for="rl-1">Dodaj z dysku</label>

当我使用时:

echo $element;

现在我有两次 HTML:

<label for="type-upload">
    <input type="radio" name="type" id="type-upload" value="upload" checked="checked" />
Dodaj z dysku
</label>
<br />

提前致谢!

【问题讨论】:

    标签: forms zend-framework render


    【解决方案1】:

    我是这样做的:https://stackoverflow.com/a/10433973/3017300

    真的不可能有其他结构的HTML代码不写然后一步一步吗? Zend 中没有任何自动化功能?不可能!

    【讨论】:

    • 当然可以。简单且可能,但我认为 Zend 的自动化结构更适合开发人员阅读,并且易于维护。也许我错了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-29
    • 1970-01-01
    • 1970-01-01
    • 2020-01-08
    • 1970-01-01
    相关资源
    最近更新 更多