是否有一种正确的方法可以在不丢失当前请求的情况下转发到 sfDoctrineRoute?
我想转发(或重定向)到 sfDoctrineRoute 而不会丢失当前请求数据。
我的问题是,当我使用转发时,路由未正确执行,因此 $form->getObject() 之类的东西不起作用。但如果我重定向到该 URL,我就会丢失所有请求数据......
I'd like to forward (or redirect) to an sfDoctrineRoute without losing the current request data.
My issue is that when I use forward, the route isn't executed correctly and so things like $form->getObject() don't work. But if I redirect to the URL, I lose all my request data...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不通过重定向传递请求参数?
Why not pass the request params with the redirect?