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
Page 1 of 1
Number Of Link To Display At A Time In Cpagination
#2
Posted 31 January 2013 - 11:01 AM
What have you tried so far?
$pages=new CPagination($count);
// results per page
$pages->pageSize=10;
$pages->currentPage=3;
#3
Posted 31 January 2013 - 11:18 AM
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.
#4
Posted 31 January 2013 - 11:37 AM
hmm, yeah it was hard for me to understand but then i guess it would be
but the 10 is already default.
$this->widget('CLinkPager', array(
'pages' => $pages,
'maxButtonCount' => 10,
));but the 10 is already default.
Share this topic:
Page 1 of 1

Help











