寻求 Zend Decorators 的帮助以获取文件上传列表
我几乎是 Zend 表单和装饰器的新手,我需要做的是以下内容:
我正在尝试生成一个如下所示的表单(在表格中):
| label | upload form | submit button | info text |
| label | upload form | submit button | info text |
...
数组中的每个元素占一行东西。
标签和信息文本只是文本输出,而不是表单字段。
我知道文件装饰器需要与表单字段进行不同的处理,并且文本输出需要添加装饰器,但我完全不知道如何实现这一点。我可以生成表单元素,但我不知道如何执行任何装饰器,并且文档根本没有帮助。
我希望那里有好心人已经解决了这个问题。
I'm pretty much a newbie to Zend's forms and decorators, and what I need to do is the following:
I'm trying to generate a form that looks as follows (in a table):
| label | upload form | submit button | info text |
| label | upload form | submit button | info text |
...
One line for each element in my array of stuff.
The label and info text are just text outputs, not form fields.
I understand that File decorators need to be handled differently from form fields and that the text outputs need to be added with decorators, but I am at a complete loss on how to achieve this. I can generate the form elements, but I have no idea how to do any of the decorators, and the documentation isn't helping at all.
I'm hoping some kind soul out there has solved this problem already.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请阅读 http://devzone.zend.com/article/3450 。我尝试这样做。但我没有时间完全做。
Please read http://devzone.zend.com/article/3450 . I try to do that. But i have not time to do completely.