I'm looking for a guide to use pagination but I haven't found one. Can anyone point me at one?
Page 1 of 1
Is there a tutorial available on how to use pagination?
#2
Posted 09 May 2010 - 07:50 AM
example
so you can use it with Grid or ListView
grid
and the best is you have get ajax already. if you havent javascript activate in browser.
it works too.
$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.
Share this topic:
Page 1 of 1

Help











