Hi,
I am using CPagination class and i want to set no of page link to be displayed in the link section.i.e.
if i have 100 page to display i want to show only 10 links at a time like google.
I also need to mention that i am using CLinkPager widget in view
imre
(Imre Lorvi)
January 31, 2013, 4:01pm
2
What have you tried so far?
$pages=new CPagination($count);
// results per page
$pages->pageSize=10;
$pages->currentPage=3;
Keith
(Kburton)
January 31, 2013, 4:18pm
3
Sujoy is asking about changing the display of page links at the bottom of the page as far as I understand, not the number of items displayed on each page.
imre
(Imre Lorvi)
January 31, 2013, 4:37pm
4
hmm, yeah it was hard for me to understand but then i guess it would be
$this->widget('CLinkPager', array(
'pages' => $pages,
'maxButtonCount' => 10,
));
but the 10 is already default.