Answer the question
In order to leave comments, you need to log in
How to write in smarty?
How will the loop look like in the smarty template engine?
foreach ($array as $i => $var) {
echo $var . $i;
}
{$pg_index.z{$group.pg_id}}
{foreach from=$groups item=group}
{$pg_index.z{$group.pg_id}}
{/foreach}
{$pg_index.z1}
{$pg_index.z2}
{$pg_index.z3}
{$pg_index.z4}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question