Hi Everyone,I’m new to Yii
When i do with CarrayDataProvider , i see this code
$rawData=Yii::app()->db->createCommand('SELECT * FROM tbl_user')->queryAll();
// or using: $rawData=User::model()->findAll();
$dataProvider=new CArrayDataProvider($rawData, array(
'id'=>'user',
'sort'=>array(
'attributes'=>array(
'id', 'username', 'email',
),
),
'pagination'=>array(
'pageSize'=>10,
),
));
// $dataProvider->getData() will return a list of arrays.
I want to know when first page reloads or i get the next page in CGridview ajax pagination , the above query is alway find all record or it’s auto add “offset, limit” attribute, ?
thanks for your help
( sorry for my bad english)