Re: [SMARTY] Popup text
| From: | Roman Neuhauser | Date: | Wed, 21 Aug 2002 12:18:19 +0000 |
| Subject: | Re: [SMARTY] Popup text | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5785@lists.php.net to get a copy of this message | ||
> Date: Wed, 21 Aug 2002 14:12:14 +0200
> From: Andreas Kossmeier <andreas.kossmeier@bergfex.at>
> To: Roman Neuhauser <neuhauser@bellavista.cz>
> Cc: smarty-general@lists.php.net
> Subject: 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.
> no? then this syntax won't work. smarty can't parse nested delimiters
right.
> 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.
right.
--
FreeBSD 4.6-STABLE
2:17PM up 20:10, 9 users, load averages: 0.01, 0.05, 0.01