RE: [SMARTY] Popup text
| From: | Van Den Berghe | Date: | Wed, 21 Aug 2002 12:12:46 +0000 |
| Subject: | RE: [SMARTY] Popup text | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5784@lists.php.net to get a copy of this message | ||
I tried mixing vars as objects in popup-text:
{popup text="$var1->foo<tag>$var2->fee<tag>"}
this does not work.
-----Oorspronkelijk bericht-----
Van: Andreas Kossmeier [mailto:andreas.kossmeier@bergfex.at]
Verzonden: woensdag 21 augustus 2002 14:12
Aan: Roman Neuhauser
CC: smarty-general@lists.php.net
Onderwerp: Re: [SMARTY] Popup text
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php