Re: [SMARTY] Re: Loading hidden config variables in PHP code

From: Date: Mon, 14 Apr 2003 00:18:08 +0000
Subject: Re: [SMARTY] Re: Loading hidden config variables in PHP code
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9231@lists.php.net to get a copy of this message
Tom Sommer wrote:
On Sun, 13 Apr 2003 19:19:50 -0400, Ilir wrote:
How do you load a .hidden variable using: $foo = $smarty->get_config_vars('hiddenvar');
I tried: $foo = $smarty->get_config_vars('.hiddenvar'); //Notice the period before 'hiddenvar'
We've discussed this a lot, and it has been turned down all the times it's been up for discussion So the answer is: you can't... Which is a shame
Yes it has been discussed, and no that's not the answer, RTFM :-) The whole reason for having hidden sections/variables in config files is to hide them from templates. If you really want to be able to read them in templates, set $config_read_hidden to true. Monte

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