public function actionLast()
{
$dataProvider=new CActiveDataProvider('Models',array(
'criteria'=>array(
'order'=>'id DESC',
'limit'=>10,
),
));
$this->render('last',array(
'dataProvider'=>$dataProvider
));
}
Тhe problem is that CActiveDataProvider returns all the records, not the last 10, but at least they are ordered. Am I missing something with the configuration?

Help













