Variable Scope and Default values in Config files

From: Date: Thu, 11 Jul 2002 15:11:14 +0000
Subject: Variable Scope and Default values in Config files
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5250@lists.php.net to get a copy of this message
A line from one of my templates looks like this: {section name=SubMenu loop=$submenu} I would like to assign $submenu a default value, just in case no value was passed. If I set a value for $submenu in a config file and then also pass a value for $submenu when calling the template, which value gets precedence? I guess I'm just not sure if the config file variables are for global static values, global default values, or both. Can anyone please shed some light? thanks, Avern _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com

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