zend_form可以与分页一起使用吗?

发布于 2024-08-10 12:13:47 字数 470 浏览 10 评论 0原文

我不确定这是否是最明智的做法,但我想无论如何我都会问。

我正在开发一个“向导”,供用户查看存储在数据库中的数据。向导的每个部分都是一个简单的 Zend_Form,允许用户查看和编辑数据。然而,向导的一个元素需要更加动态一些。

动态位需要能够允许用户“滚动”其中包含不同数据的相同实例的多个实例,就像滚动数据库的记录一样。然而,用户能够更新显示的数据。他们还必须能够向表单添加和删除 TextBox 元素(我计划使用 javascript/dojo 添加这些元素),但在进入下一个表单之前需要保存每个 TextBox 元素。

我正在考虑使用 Zend_paginator 来完成此操作,但由于每次点击都是 _GET 请求,是否可以将其设置为 _POST ,以便我可以在将用户移动到下一条记录之前处理表单请求?

我希望这是有道理的,它很难描述,但是如果有更好的方法来实现此功能,我将有兴趣听听如何实现,(特别是如果它让我的生活更轻松一点)

谢谢...

I am not sure if this is the most sensible way of doing this but I thought I would ask anyway.

I have a 'wizard' that I am developing for users to review data that is stored in the database. Each part of the wizard is a simple Zend_Form allowing the users to review and edit the data. However one element of the wizard needs to be a bit more dynamic.

The dynamic bit needs to be able to allow the users to 'scroll' through multiple instances of the same for with different data in it, as you would scroll through the records of a database. However with the user being able to update the data displayed. They must also be able to add and remove TextBox elements to the form (I was planning on adding these elements with javascript/dojo) but each TextBox element needs to be saved before moving on to the next form.

I am thinking of using Zend_paginator to accomplish this but as each click though is a _GET request, is it possible to make it _POST so that I can handle the form request before moving the user to the next record?

I hope this makes sense, it is quite difficult to describe, however if there is a better way of achieving this functionality I would be interested in hearing how, (esp if it makes my life a little easier)

Thanks...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最笨的告白 2024-08-17 12:13:47

我已经了解到 Zend Framework 将来会正式支持多页表单,但目前最好的解决方案是像 参考指南中有详细说明

I've read that multi-page forms will be officially supported by Zend Framework in the future, but for now your best solution is an implementation like the one detailed in the reference guide.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文