I am trying to change the default value of 10 for the number of records to show on each page. I tried following different techniques but found none of them to work. It seems that it has changed during different versions of Yii.
I am using version 1.1.2.
I want to change my invoice view of ?r=invoice/index and ?r=invoice/admin to show 20 records instead of 10. It looks like the way I should achieve this is by changing actionIndex() to this:
* Lists all models.
public function actionIndex()
However this doesn’t change anything. Is my approach correct for the version I’m using?
To clarify even further, here is the entire search method from my PriceRange model
public function search()
// Warning: Please modify the following code to remove attributes that
// should not be searched.
return new CActiveDataProvider(get_class($this), array(
Like I said - No idea if it is the "proper" way to do things, but it does do the job.