请php大神看看我这个写的有错误吗为什么会报错,还是我走入误区了?
<?phpnamespaceHome\Controller;useThink\Controller;classApiControllerextendsController...
<?php
namespace Home\Controller;
use Think\Controller;
class ApiController extends Controller {
public function gf_bill(){
$gf_bill=M('gf_bill');
$sql = "type=1 AND status=1";
$datalist = $gf_bill->where($sql)->order("displayorder DESC,id DESC")->field('id,uid,money,dateline')->select();
echo json_encode($datalist);
}
} 展开
namespace Home\Controller;
use Think\Controller;
class ApiController extends Controller {
public function gf_bill(){
$gf_bill=M('gf_bill');
$sql = "type=1 AND status=1";
$datalist = $gf_bill->where($sql)->order("displayorder DESC,id DESC")->field('id,uid,money,dateline')->select();
echo json_encode($datalist);
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询