CAD CAM ENGINEER
Thứ Hai, 3 tháng 9, 2012
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
Không có nhận xét nào:
Đăng nhận xét
‹
›
Trang chủ
Xem phiên bản web
Không có nhận xét nào:
Đăng nhận xét