Hello, I was trying to change the number of items displayed in a grid view. I set the code as follows but I get no change. I would also like to delete the text that appears. for example
You can set the page size of a CGridView when you create the CActiveDataProvider for it.
It is usually done in the search() method of the model.
public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('id',$this->id);
....
return new CActiveDataProvider(get_class($this), array(
'criteria' => $criteria,
'pagination' => array( // pagination property
'pageSize' => 30, // page size
), //
));
}