Traversing arrays

Front desk so traversing arrays should not wrong.
<!--{loop $allinpaybank $bank}-->
    <input id="check-{$bank}" type="radio" name="payment" value="{$bank}" />
    <label for="check-{$bank}" class="{$bank} bankicon"></label>
<!--{/loop}-->


Traversal in results in the page display is
{loop $allinpaybank $bank}⊙{/loop}


⊙For checkbox

Started by Brook at October 30, 2016 - 9:23 PM

⊙ For Radiobox

Posted by Brook at November 09, 2016 - 10:07 PM

This should be the template.

Posted by Darcy at November 14, 2016 - 10:59 PM

demo:

{section name=loop loop=$News}
<td>{$News[loop].newsID}</td>
<td>{$News[loop].newsTitle}</td>
{/section}

Posted by Jean at November 24, 2016 - 11:46 PM