$criteria=new CDbCriteria; $criteria->compare('id',$this->id); $criteria->addNotInCondition('id',array(1)); $criteria->compare('name',$this->name,true); return new CActiveDataProvider($this, array( 'criteria'=>$criteria, ));
No comments:
Post a Comment