Re: Appending values to a var from within template

From: Date: Wed, 22 Aug 2001 22:19:48 +0000
Subject: Re: Appending values to a var from within template
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1373@lists.php.net to get a copy of this message
So sprach »Andrei Zmievski« am 2001-08-22 um 16:44:38 -0500 : > Yes, and there is no good way to do it right now... we'll have to think > of something. Darn. Well, a work around would be, to have a {append} also in the template. This way, values can be constructed. For my example, I'd have: {assign var="assigned" value="page"} {append var="assigned" value=$var} {append var="assigned" value="tpl"} Nice? No, not at all... But this should be the most flexible. Maybe {assign} could be beefed up, so that if there's $%var%, it looks for $var. Kinda like ${$var} in PHP. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 17 hours 3 minutes

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