class IndexAction extends Action {
public function index(){
$user=M('member');
$list=$user->select();
$this->assign('list',$list);
$this->display();
}模板<body>
<volist name='list' id='vo'>
<p>{$vo.['name']} ---------- {$vo.time}</p>
</volist>
</body>
输出了这个
{$vo.['name']} ---------- {$vo.time}
最佳答案