Monday, May 21, 2007

Looping in Smarty

One easy way to use looping in Smarty is to use section.

{section name=n1 loop=$a}

  • {$a[n1]}


  • {/section}

    Here n is the section Name, $a is the array of elements.
  • No comments: