smarty的section与foreach详解
{section loop = $varName[, start = $start, step = $step, max = $max, show = true]}
{$smarty.foreach.name.property}访问,其中”name”是name属性。
{foreach}属性有index, iteration, first, last, show, total.
smarty的section与foreach详解
{section loop = $varName[, start = $start, step = $step, max = $max, show = true]}
{$smarty.foreach.name.property}访问,其中”name”是name属性。
{foreach}属性有index, iteration, first, last, show, total.