Re: Pagination in Detail page like gmail
I think your biggest issue is to make paginator helper generate links to your details pages, correct?
I dont think you can do it with regular paginator, so in your place, I would extend it, create a custom query to return the paginator data and count and then create the links pointing to your controller/action/detail_id
Keep us posted of your progress ;)
Luciano
On Thursday, January 17, 2013 5:53:39 AM UTC-2, Ricko Marshal wrote:
-- On Thursday, January 17, 2013 5:53:39 AM UTC-2, Ricko Marshal wrote:
Hi,
I have implemented cakephp 2 pagination to display a list.
It is working fine.
Now when I select (click) a item in the list it will display the item detail page.
It will fetch the item detail by item id (i.e find : first in cake way).
It is almost similar as gmail inbox and view message detail page.
Now what I want is to display page information in detail page too.e.g [ Showing 5 of 34 << | >>]Here 34 is the total number of records returned by the paginator.
5 is the record number.
How to implement this in cakephp2.
any help or valuable suggestion will be highly appreciated.
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 post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home