Re: [SMARTY] Embedding variables in strings

From: Date: Wed, 09 Jun 2004 05:17:22 +0000
Subject: Re: [SMARTY] Embedding variables in strings
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11438@lists.php.net to get a copy of this message
You're looking for this: http://smarty.php.net/manual/en/language.syntax.quotes.php - david On Tue, 08 Jun 2004 20:50:16 -0400 Travis Low <travis@dawnstar.com> wrote: > Hello. I'd like to change the include path in a few situations, but I'm not > sure how to delimit: > > {include file="$somepathsomefile"} > > The idea being that "$somepath" will be something like > "/usr/local/some/path/", > and "somefile" is the actual name of the file. How do I tell Smarty where the > variable ends and the string begins? > > The reason I want to do it this way is because $somepath should be empty if we > aren't using $somepath -- I don't want to use if statements. > > cheers, > > Travis > > -- > Travis Low > <mailto:travis@dawnstar.com> > <http://www.dawnstar.com> > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Attachment: [application/pgp-signature]
« previous php.smarty.general (#11438) next »