Re: [SMARTY] Popup text

From: Date: Wed, 21 Aug 2002 12:12:14 +0000
Subject: Re: [SMARTY] Popup text
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5783@lists.php.net to get a copy of this message
Roman Neuhauser wrote:
{popup text="{$var1}<tag>{$var2}<tag>{$var3}<tag>{$var4}<tag>"}
    what prevents you from doing just that?
    but, you know, you *could* do your own homework.
question: did _your_ *homework* include a new string parser? no? then this syntax won't work. smarty can't parse nested delimiters in this special case {popup text="$var1<tag>$var2<tag>$var3<tag>$var4<tag>"} will do the job, note that only the simple string parsing features can be used inside attributes, since php's "{$var}" syntax for strings conflicts with smarty delimiters. also you cannot use the smarty syntax for accessing assoc. arrays (e.g. $test.name), because vars inside string attributes are "only" php-string-parsed. -- andreas kossmeier bergfex.at - http://www.bergfex.at

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