public function showList(){ // $goods = new GoodsModel(); // $goods = D("category"); $goods = M("goods"); $res = $goods->select(); $this->assign('goodsinfo',$res); $this->display(); }
Smart ordered sequence provided {$ val @ iteration} AutoSort
Time display format provided by smart
{$val.goods_create_time|date_format:"%Y-%I-%d %H:%M:%S"}