yii ~ findAll example

$model=Auction::model()->findAll(array(
'condition'=>'status=:status AND starttime >= :date',
'params'=>array(':status'=>1, ':date'=>$date),
));


reference
http://stackoverflow.com/questions/7314284/yii-findbyattributes-with-greater-than-attribute

沒有留言: