Questions tagged [pagerfanta]

Pagerfanta is a pagination library for PHP

Pagerfanta is a pagination library for PHP: https://github.com/whiteoctober/Pagerfanta

36 questions
0
votes
1 answer

Use elastica with PagerFanta and dynamic querybuilder

I have an application with symfony2 / doctrine 2 / elastica / fosElasticaBundle / pagerFanta. I want to use a custom and dynamic queryBuilder in combination with pagerfanta and elastica. Not to transform the results but to prefilter them. So far I…
Sébastien
  • 5,263
  • 11
  • 55
  • 116
0
votes
1 answer

pagerfanta used in a form with a search. symfony2

I'd like the paging link render by pagerfanta be submitted with the form data. This is to consider the data entered in the search form. A simple pagination link will not allow me to navigate in my search result. Any help please ? controller /** *…
smarttech
  • 133
  • 1
  • 4
  • 11
0
votes
1 answer

Pagerfanta reverse order pagination

My question is : is it possible to easily make WhiteOctoberPagerFantaBundle for SF2 in reverse order? I mean, when we normally have pagination: 1, 2, 3 (newest content at the 1 page) -> to make : 241,240,239,.... ( newest content at the 241). Thank…
Deyvid.
  • 211
  • 4
  • 10
0
votes
1 answer

Undefined method Jackalope\Query\QueryResult::count() when accessing Sylius's 'Blocks' or 'Pages' section on backend

When I click on the 'Blocks' or 'Pages' section in the sidebar in Sylius's admin backend, I get the following error: FatalErrorException: Error: Call to undefined method Jackalope\Query\QueryResult::count() in…
sabliao
  • 147
  • 3
  • 10
0
votes
1 answer

pagerfanta - DoctrineORMAdapter Sorting

Although I know this is trivial I'm stuck trying to implement the pagerfanta Paginator using the DoctrineORMAdapter, I want to paginate all entities sorted by id in descending order, the final SQL I want is this: SELECT id, name FROM User ORDER BY…
0
votes
1 answer

pagerfanta submit with the form data

I have a form with criterias that return a list of results in the same view adding the PagerFanta paginator. To go to next page or previous page I need send the same form data (criterias). What is the better way? Thank you and I'm sorry for my…
fjhdez
  • 11
  • 1
1 2
3