How to show the pagination in the view, with own design, using dataProvider?
Im not using CGridView to show dataProvider items.
Controller.php:
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('Projects', array(
'criteria'=>array(
),
'pagination'=>array(
'pageSize'=>Yii::app()->params['itemsPerPage'],
),
));
$this->render('index',array(
'dataProvider'=>$dataProvider,
));
}
All the CGridView, CListView and .. use a widget called, CLinkPager
Check here for more info
It also gives good example in the comments about using it in controller and comment. I’m sure you can easily adopt your dataprovider to CLinkPager. Good luck. Read the public properties, you can even use your own CSS, for different pages.