embedded variable handling

From: Date: Wed, 19 Feb 2003 15:32:41 +0000
Subject: embedded variable handling
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-736@lists.php.net to get a copy of this message
We need to make an important decision here. Example of problem: {include file="$page.tpl"} Should the embedded variable be seen as $page or $page.tpl ? We are having problems where people expect that the ".tpl" is not seen as part of the variable. Smarty used to only allow $foo imbedded variable syntax, until we had a request that $foo[0] should work too, so full syntax support was enabled. So you can do something like this: "texttext $foo.bar[0][3].blah[index] texttext" Now, do we restrict embedded variable syntax to only $foo, or do we support $foo[0][bar] but not $foo.bar, or just leave things as is and support full variables? Monte -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#736) next »