if(isset($_GET['Searchlog']))
$model->attributes=$_GET['Searchlog'];
$this->render('admin',array(
'model'=>$model,
));
Not sure how to add a sort by id desc.
Thanks
if(isset($_GET['Searchlog']))
$model->attributes=$_GET['Searchlog'];
$this->render('admin',array(
'model'=>$model,
));
Not sure how to add a sort by id desc.
Thanks
return new CActiveDataProvider(get_class($this), array(
'criteria'=>$criteria,
'sort'=>array(
'defaultOrder'=>'id desc',
),
));
I resolved this.
That’s the usual solution, good one.