sintax problem

From: Date: Wed, 10 Oct 2007 10:54:14 +0000
Subject: sintax problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13770@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#13770) next »