if writing to a sql
select * from post where author = admin
but how to write it on yii
$model = new CActiveDataProvider('Post', array(
'pagination'=>array(
'pageSize'=>3,
))
);
if writing to a sql
select * from post where author = admin
but how to write it on yii
$model = new CActiveDataProvider('Post', array(
'pagination'=>array(
'pageSize'=>3,
))
);