RsD0p9BK
4/21/2015 - 6:12 AM

increment.tpl

{* Increment assigned variable *}

{assign var=var value=1}
{capture assign=var}{$var+1}{/capture}

{assign var=val value=1}
{assign var=val value=$val+1}


{* http://stackoverflow.com/questions/8674831/how-do-you-increment-an-assigned-variable-in-smarty-without-displaying-it *}