Smarty template engine info =(:-/)

section:

##{section name=id loop=$adat}#

##{$smarty.section.id.index}#, ##{$adat[id].id}#

##{/section}#

**********************************

if:
##{if $adat[id].bold eq 1}## foo ##{else}# baz ##{/if}#

**********************************

##{foreach item=i from=$target name=foo }#

##{$i.id}#, ##{$i.target}# , ##{$smarty.foreach.foo.index}#

##{/foreach}#

https://www.smarty.net/docsv2/en/language.function.foreach.tpl

**********************************

php smarty loop multidimensional array

https://stackoverflow.com/questions/2562473/php-smarty-loop-multidimensional-array

Blogbook : PHP | Javascript | Laravel | Corcel | CodeIgniter | VueJs | ReactJs | WordPress