I\'m trying to do a pagination on a CGridView using CArrayDataProvider (my $rawData is a custom array - not from a DB/model).
So, In the c
Not sure it will solve your problem, but in your CArrayDataProvider you use id to define the name of the key field instead of keyField.
You could try the following:
$dataProvider=new CArrayDataProvider($users, array(
'id'=>'users',
'keyField' => 'id',
'keys'=>array('id','name', 'surname', 'phone', 'address'),
'sort'=>array(
'attributes'=>array(
'name', 'surname', 'phone', 'address'
),
),
'pagination'=>array(
'pageSize'=>15,
),
));