Embedding variables in strings

From: Date: Wed, 09 Jun 2004 00:50:16 +0000
Subject: Embedding variables in strings
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11437@lists.php.net to get a copy of this message
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>

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