smarty的section与foreach详解

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.

Posted in smarty. Tags: . 1 Comment »