thinkphp查询
public function index(){
$result = M('content')->select()
$this->assig('result',$result);
$this->display()
}
简化
public function index(){
$this->assign('result',M('content'->select()))display()
}
public function index(){
$result = M('content')->select()
$this->assig('result',$result);
$this->display()
}
简化
public function index(){
$this->assign('result',M('content'->select()))display()
}