problem with config vars
| From: | Tom Sommer | Date: | Sat, 05 Apr 2003 21:53:51 +0000 |
| Subject: | problem with config vars | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9131@lists.php.net to get a copy of this message | ||
I got a small problem with template vars embedded in config vars
I got this as a config var
var1 = '<img src="{$THEME_PATH}images/bullet.jpg">'
then I assign var1 in PHP by doing this
$smarty->assign('test', make_link('test.php',
$smarty->get_config_vars('var1') );
(without the wrap)
It should then be obvious that {$THEME_PATH} is not replaced by the value
of that var, how do I solve this?
eval does not work on the php level
perhaps a $smary->eval() ?
--
Tom Sommer, Denmark
www.tsn.dk - www.dreamcoder.dk