用KnpPaginatorBundle看不到页面 [英] can't see pages with KnpPaginatorBundle

查看:100
本文介绍了用KnpPaginatorBundle看不到页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张表格,可以发送帖子请求并显示分页结果.有问题,当我想查看第2页及更多页时,因为发送了get请求,而控制器没有看到用于创建查询的表格.有人知道如何解决这个问题吗?

I got a form, that send post request and show paginated results. There are problems, when i want to see pages number 2 and more, because there sended get request and controller doesn't see form to create query. Anyone know how to solve this problem?

推荐答案

我认为最简单的方法是使搜索成为get请求,从而使它位于url中.然后,分页的链接也将具有搜索值.

I think easiest way would be to make the search a get request so that is in the url. Then the paginated links will have the search value too.

这篇关于用KnpPaginatorBundle看不到页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆