yii, pagination simple

Pagination in yii is quite simple. Before you can understand the solution i am presenting below you need to know how YII works basically and the model controller and view approach of yii: Add following code in your controller action function: function actionIndex(){ $criteria = new CDbCriteria(); $count=Article::model()->count($criteria); $pages=new CPagination($count); // results per page $pages->pageSize=10;… Continue reading yii, pagination simple