Re: Assigning custom function section variable

From: Date: Sun, 19 Aug 2001 15:09:45 +0000
Subject: Re: Assigning custom function section variable
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1364@lists.php.net to get a copy of this message
At 01:33 PM 8/19/01 +0200, Alexander Skwar wrote:
Also removing the { and } at the x= and y= section in my template doesn't work. The section now looks like this: {section name=people loop=$FirstName} {%people.rownum%} {$FirstName[people]} {$LastName[people]} {math equation="x + y" x="$FirstName[people]" y="$LastName[people]"}<br> {/section}
Don't put the variables in quotes. Try this: x=$FirstName[people] y=$LastName[people] Smarty doesn't parse anything inside quotes, so watch out for that. -Andrei

« previous php.smarty.general (#1364) next »