php - 层层路由作为 POST?
问题描述
我使用 Laminas 并且在 ControllerAction 函数中我想通过使用重定向到另一个 url 作为帖子$this->redirect()->toRoute('newSite', $noURLParams, $options);
当我使用“查询”-Option ( $options = [$query => ['postPara1' => 'blabla', 'postPara2' => 'blubblub']]
) 时,我将在 URL 中将“post”-Parameter 作为 GET-Parameter 获取:
hhttp://localhost/new-site?postPara1=blabla&postPara2=blubblub
这样大家就可以看到参数的内容了。
有没有办法让 toRoute() 从中发出“POST”?还是我必须为此使用另一个功能?
解决方案
感谢您的关注和帮助。在你说它不起作用之后,我改变了应该调用什么,何时调用的顺序,现在我可以在没有额外重定向的情况下做到这一点。
推荐阅读
- r - R:ggplot - 使用 geom_raster 和 facet_wrap
- python - 为什么我的索引代码在列表中找不到项目?
- python - 如何为字符串中的单词创建单词长度列表?
- javascript - 如何在 Typescript 中以适当的方式动态创建类?
- python - 如何使用 urllib 修复 SSL 证书错误?
- javascript - ajax 函数的这些参数是如何工作的?
- javascript - Three.js:将 RawShaderMaterial 与 LineSegments 一起使用
- telegram - 如何在如下模板中的电报聊天中发送包含大量图像和文本的消息?
- python - 预测 Keras 中的类 - IndexError:索引 196 超出轴 0 的范围,大小为 196
- haskell - 如何在haskell中为数据结构创建默认值