mmvsbg
mmvsbg

Reputation: 3588

Yii Framework: Multiple AJAX Paginators

I'm working on an Yii application and I have a particular action that renders a page which is separated in 3 different sections. Let's say that the first section displays items from the database from Class A, the second displays items from Class B and the third from Class C. Each class section is in different div and each section could contain a lot of items.

My goal though is to display only 8 or 10 items per section from the respective class and then provide paginator links to navigate to the rest of the section's items. I have all the items in three different arrays and I can display them with no problems, however, without the pages functionality. In a nut shell, I need to somehow make 3 different paginators work on the same page and I have no idea how reading the yii pagination guides so any tips are more than welcome. Thank you!

Upvotes: 0

Views: 80

Answers (1)

Dinistro
Dinistro

Reputation: 5730

I think that you had forget the pageVar in your CPagination.

Upvotes: 1

Related Questions