Re: eval & assign

From: Date: Mon, 25 Mar 2002 14:22:54 +0000
Subject: Re: eval & assign
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3325@lists.php.net to get a copy of this message
On Sat, 23 Mar 2002, Andreas Heintze wrote: > Why can't I do like this: > {assign var="records_found" value="12"}{eval assign="test" > var="I found > {$records_found|numbertext:'no records':'one record':'%d > records'}"}{test|capitalize} Because when parsing is done, all the template tags are extracted and processed at once. It can't know that you embedded a template tag inside a quoted string and that it shouldn't be processed until runtime. -Andrei * Proximity bug: when the program crashes in front of important visitors. *

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