私人领地

thinkphp查询

public function index(){

  $result = M('content')->select()

  $this->assig('result',$result);

  $this->display()

}

 

简化

public function index(){

  $this->assign('result',M('content'->select()))display()

}

posted @ 2015-11-08 13:39  狂奔的蜗牛Snails  阅读(137)  评论(0编辑  收藏  举报