1. 程式人生 > >thinkphp模板中陣列的輸出

thinkphp模板中陣列的輸出

$this->assign('design_img',$design_img); //thinkphp 一維陣列輸出

<foreach name="design_img" item="vo">     <input type="text" name="design_img[]"  value="{$vo}"  /> </foreach>

//二維陣列 <volist name="design_img" id="design_img">     {$design_img.name} </volist>

//多維陣列 <volist name="design_img" id="vo">     {$vo.name}     <volist name="vo['voo']" id="sub">      {$sub.name}     </volist> </volist>