Tuesday, March 11, 2014

Re: Can't we use more than 1 paginator per page?

It is possible of course but it depends on if you would like to persist the pagination - i.e. save the state via URL so that you can access the same portion of data later.
In that case you will have to find a nice named-parameter way to persist the pagination data.
You will have to use AJAX pagination for this to work.

Your current problem comes from the fact that the stock paginators use named-parameters and when you have 2 on one page they seem to conflict.


On Monday, 10 March 2014 10:27:40 UTC+2, happy wrote:
http://stackoverflow.com/questions/22291846/how-to-do-multiple-pagination-without-page-not-found-error-in-cakephp

I have problem with more than 1 paginator in the same page.
If 1st paginator has page number higher than the 2nd paginator, then It will be page not found error.
EX. On student detail page(Student model) has paginator of income(Income model) and expanse(Expanse model).
If Income's paginator  has total 5 pages and Expanse's paginator has total 3 pages.
Then Income page 1, 2, 3 has no problem but income page 4 ,5 will have "page not found" error .

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: