I’m looking for a guide to use pagination but I haven’t found one. Can anyone point me at one?
I’m looking for a guide to use pagination but I haven’t found one. Can anyone point me at one?
example
$dataProvider=new CActiveDataProvider('products', array('pagination'=>array(
'pageSize'=>'2')));?>
so you can use it with Grid or ListView
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
grid
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
and the best is you have get ajax already. if you havent javascript activate in browser.
it works too.