1 $abc = GzhAd::findBySql('SELECT * FROM gongZhongHaoInfo where advertisementID >= :start && advertisementID <= :end', array(':start' => $start, ':end' => $end))->all(); 2 $age=array("GongZhongHaoInfo"=>$abc);//在这里添加JSON头
1 $abc = GzhAd::findBySql('SELECT * FROM gongZhongHaoInfo where advertisementID >= :start && advertisementID <= :end', array(':start' => $start, ':end' => $end))->all(); 2 $age=array("GongZhongHaoInfo"=>$abc);//在这里添加JSON头