sammym
(Sammy)
1
Hi, I have a simple dataprovider which includes pagination in my controller:
$dataProvider=new CActiveDataProvider(‘Posts’, array(‘pagination’=>array(‘pageSize’=>4)));
$this->render(‘index’,array(‘dataProvider’=>$dataProvider,));
Is there a way to tell pagination to not use ajax and just refresh the page instead?
Thanks
szfjozsef
(Szfjozsef)
2
Listview example:
$this->widget('zii.widgets.CListView', array(
'dataProvider'=>AR_Brands::listForCatalogue(),
'ajaxUpdate'=>false, // <- your answer is here
'itemView'=>'_itemview_brands_brand',
'template'=>"{summary}\n{pager}<hr>\n{sorter}\n{items}\n<hr>{pager}",
'summaryText'=>'Total {count} brands, visible from {start} to {end}',
'emptyText'=>'No brands found...',
'pager'=>array(
'header'=>'',
'nextPageLabel'=>'>',
'prevPageLabel'=>'<',
),
The same [color="#FF0000"]‘ajaxUpdate’=>false[/color] goes for CGridView
sammym
(Sammy)
3
fantastic, thanks for your help!