Re: [SMARTY] setting up and loading a config file problematic here

From: Date: Tue, 20 Jul 2004 18:30:07 +0000
Subject: Re: [SMARTY] setting up and loading a config file problematic here
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11614@lists.php.net to get a copy of this message
{$smarty.config.navilinks} should be in the .tpl file after the {config_load ...} call, is that what you're doing? Thorsten wrote:
hi, i've re-discovered Smarty a few days back and tried setting up a config file with variables and loading it in a .tpl file. i read up on it in the 2.6.0 documentation (p. 13) and think i entered stuff correctly: in the .conf: navilinks = "<a href='#'>f00</a> - <a href='#'>bar</a>" in the .tpl: {config_load file="variables.conf"} in the .php: {$smarty.config.navilinks} the {$smarty.config.navilinks} returns nothing in the .php file when invoking the respective page while the other code like including .tpls et al works. any idea? more info needed? cheers, - Thorsten


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