Embedding vars
| From: | Luca Borrione | Date: | Thu, 23 Oct 2003 16:19:49 +0000 |
| Subject: | Embedding vars | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10408@lists.php.net to get a copy of this message | ||
Hi all,
sorry if someone already posted this, but I haven't found a previous answer.
Having some config vars specified in the config file:
var1 = value1
var2 = value2
Having a template var which could be associated to one of the previous config keys:
[e.g.]
$smarty->assign("myvar", "var1");
How could I write the relative config value using the template var?
[e.g.]
{#var1#} => will be *value1*
{$myvar} => will be *var1*
I would like that
{#$myvar#} would be *value1*
But this is not.
Which is the right syntax?
Thank you
Luca