Home >Backend Development >PHP Tutorial >thinkphp template assignment problem
<code class="php">$User = M('User'); $list = $User->limit(10)->select(); $this->assign('list',$list); <volist name="list" id="vo"> {$vo.select}<br/> </volist> </code>
If my {$vo.select}
is still an array at this time, how can I traverse this array in the template?
<code class="php">$User = M('User'); $list = $User->limit(10)->select(); $this->assign('list',$list); <volist name="list" id="vo"> {$vo.select}<br/> </volist> </code>
If my {$vo.select}
is still an array at this time, how can I traverse this array in the template?
Nest another volist
<code><volist name="vo.select" id="selecter"> {{ selecter.name }} </volist></code>