Hi I am trying to do concatenation in smarty. Here is an example of how I would like to use the code. The php assigns
$smarty->assign( myvar ,array(1,5,6,4));
$smarty->assign( myvar2 ,array( a1 =>1, a2 =>2, a3 =>3, a4 =>4));
And the template page
{foreach from=$myvar item=v}
{if $v == $myvar2.a+$v}
match
{else}
no match
{/if}
{/foreach}
This should write out match two times and no match two times.But instead writes match four times which makes no sense to me.
Thanks