Loading

tp3.1.3 查询渲染模板

 public function showList(){
        // $goods = new GoodsModel();
        //  $goods = D("category");
        $goods = M("goods");
        $res = $goods->select();
        $this->assign('goodsinfo',$res);
        $this->display();
    }

 

 

 

 

序列排序 smart提供的{$val@iteration} 自动排序

时间 smart提供的展示格式

{$val.goods_create_time|date_format:"%Y-%I-%d %H:%M:%S"}
posted @ 2019-08-30 09:35  mingBolg  阅读(328)  评论(0编辑  收藏  举报