- Usuario -> orden por defecto en el grid.
git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_IntranetNueva/trunk@19 77cfc57b-8ef4-1849-9df6-4a38aa5da120
This commit is contained in:
parent
6472a667f3
commit
5227fb64a3
@ -90,16 +90,17 @@ class Usuario extends CActiveRecord
|
||||
// should not be searched.
|
||||
|
||||
$criteria=new CDbCriteria;
|
||||
|
||||
$criteria->compare('id',$this->id);
|
||||
$criteria->compare('email',$this->email,true);
|
||||
$criteria->compare('name',$this->name,true);
|
||||
$criteria->compare('username',$this->username,true);
|
||||
$criteria->compare('password',$this->password,true);
|
||||
$criteria->compare('last_login_time',$this->last_login_time,true);
|
||||
|
||||
$sort = new CSort;
|
||||
$sort->defaultOrder = 'name ASC';
|
||||
|
||||
return new CActiveDataProvider($this, array(
|
||||
'criteria' => $criteria,
|
||||
'sort' => $sort,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user