public function search()
{
// @todo Please modify the following code to remove attributes that should not be searched.
$criteria=new CDbCriteria;
$criteria->compare('id',$this->id);
$criteria->compare('district_id',$this->district_id);
$criteria->compare('name_ru',$this->name_ru,true);
$criteria->compare('name_en',$this->name_en,true);
$criteria->compare('address_ru',$this->address_ru,true);
$criteria->compare('address_en',$this->address_en,true);
$criteria->compare('sort',$this->sort);
$criteria->compare('active',$this->active);
// $criteria->select = 'id, name_'.$language.' AS "name"';
if(count(Yii::app()->request->getParam('RefMahala')['name_'.Yii::app()->language])>0 || intval(Yii::app()->request->getParam('RefMahala',['district_id'=>null])['district_id']) > 0 ){
// мне нужно узнать что сюда нужно вписать чтобы отключить этот поиск. die ?
}
return new CActiveDataProvider($this, array(
'criteria'=>$criteria,
));
}