|
From: Nuno Mendes on 10 Oct 2007 06:54 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
|
Pages: 1 Prev: Newline being inserted after plugin Next: Newline being inserted after plugin - Still stumped |