hi,
I have a config file with several values like:
menu_test1 = 'test1'
menu_test2 = 'test2'
menu_test3 = 'test3'
and I'm passing a variable to the template like:
assign('page' => 'test1');
and I want to retrieve the value of one of those config
variables based
on this $page variable.
I've already tried several sintaxes but none seems to work:
For testing porposes I tried
{"smarty.config.menu_$page"} and got:
smarty.config.menu_test1
but if I try {"$smarty.config.menu_$page"} to get
the real config
variable value I get an error:
sintax error: $smarty. is an unknown reference
Can you please tell me what's the correct sintax? Thank
you!
Nuno
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|