How to find first and last index of foreach loop in smarty
When we do a coding with the Prestashop sometime we need to find whether first/last index of foreach loop. There are 2 ways to find first or last index of foreach loop in the smarty. I will show you some of example for that. {foreach from=$arrList key=myId item=i name=foo} {if $smarty.foreach.foo.first} This is the first[…]