Reputation: 1
Could you possibly help me, please, I'm implementing pagination on my news page as it shown at this page.
On the very first page it is working fine. But when I click on a page link to get page 2 or page 3, I get a blank result. No data, no pager. What should I do to fix it?
Upvotes: 0
Views: 119
Reputation: 132
You basically just specify a page size on your data provider / active record
$model = new CArrayDataProvider( $dataRow,
array('pagination'=> array('pageSize'=>5) ));
Upvotes: 1
Reputation: 45
I have faced the same problem awhile ago i resolved by changing the method name except index because by googling i found that lots of pagination doesn't work with index method i am not sure about this just sharing my experience.
Upvotes: 0