I am new to YII
frame work
I have integrated the pagination by refer this url Click here
I used the complex way method(By refer the above url) to integrate the pagination. It is working fine. But I didn't use 2 pagination in single page. the page variables overlapped.
I need to list members and retailers separately. 2 sections are collaid with the same page variables
.
To override the page variable
I tried to use pageVar
parameter. But it shows an error.
I don't know how to overwrite the page variables
Pagination Code for members:
$this->widget(
'CLinkPager', array(
'currentPage'=>$pages->getCurrentPage(),
'itemCount'=>$item_count,
'pageSize'=>$page_size,
'firstPageLabel' => '',
'prevPageLabel' => '',
'nextPageLabel'=>'',
'lastPageLabel'=>'last',
'header'=>'<p>Page :</p>',
'htmlOptions'=>array('class'=>'pages'),
));
Pagination Code for Retailers:
$this->widget(
'CLinkPager', array(
'currentPage'=>$pages_ret->getCurrentPage(),
'itemCount'=>$item_count2,
'pageSize'=>$page_size2,
'firstPageLabel' => '',
'prevPageLabel' => '',
'nextPageLabel'=>'',
'lastPageLabel'=>'last',
'header'=>'<p>Page :</p>',
'htmlOptions'=>array('class'=>'pages'),
));
Please give a solution. Thanks