db251; } public static function model($className = __CLASS__){ return parent::model($className); } public function tableName(){ return "order_back"; } public function primaryKey(){ return array('order_id'); } public function getOrderInfo($orderid){ $criteria = new CDbCriteria(); $criteria->select = '*'; $criteria->addCondition('order_id=:id'); $criteria->params[':id'] = $orderid; return $this->find($criteria); } }