控制器:$result = $M->where($where)->select(); //读取数据库内容 $this->assign("result",$result); //输出变量到模板dump($result);//打印当前变量内容模板:{$vo.id}