Re: [SMARTY] embedding variables in assign

From: Date: Wed, 12 Feb 2003 17:37:41 +0000
Subject: Re: [SMARTY] embedding variables in assign
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7696@lists.php.net to get a copy of this message
Thanks, that's a good workaround. {section name=item loop=$items} {assign var=blah value=$items[item].id} {assign var=s value="View information for $blah"} {/section} I'll upgrade someday, really. :-) Monte Ohrt wrote:
I don't think 2.3.1 will support that, it will only support a simple variable name such as " $blah " On Wed, 2003-02-12 at 11:31, Travis Low wrote:
2.3.1. There was a typo in my template that caused the error, but it still does not display correctly. I see only ".id". Is this expected for 2.3.1? Travis Monte Ohrt wrote:
What version of Smarty? Use the latest one, that syntax should work as expected. On Wed, 2003-02-12 at 11:19, Travis Low wrote:
Is it possible to embed variables within an assignment? For example: {section name=item loop=$items} {assign var=s value="View information for $items[item].id"} {/section} I keep getting a parse error, so I'm wondering if there is any magic synatax I can use. -- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>
-- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>
-- Travis Low <mailto:travis@dawnstar.org> <http://dawnstar.org/travis>

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