How to set the number of items per page in a CGridView?
pagination, php, yii
Solution
Find in your view the place where the `CGridView` widget is being rendered, and configure the `pagination` property of the data provider:
$this->widget('zii.widgets.CGridView', array(
'dataProvider' => array(
/* other options for the data provider... */
'pagination' => array('pageSize' => 100),
),
/* other options for the grid view... */
));
Problem
I have a project in Yii where there is a `CGridView` that by default shows 10 records per page. How can I set this to 100 records?