Re: [SMARTY] Use config vars inside .php file (not the .tpl file)
| From: | Monte Ohrt | Date: | Sat, 15 Mar 2003 07:31:27 +0000 |
| Subject: | Re: [SMARTY] Use config vars inside .php file (not the .tpl file) | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8669@lists.php.net to get a copy of this message | ||
Tom Sommer wrote:
On 14 Mar 2003 23:50:54 +0100, Travel Jadoo wrote:$lang2 is supposed to get the globals + the section. However it only gets the section.Documentation: Config files may also contain sections. You can load variables from within a section with the added attribute section. I would think globals also should be loaded, however I'm sure many disagree I would also like get_config_vars to 1) return an array if no argument is given It should do that already (returns all loaded config vars)
2) include hidden sections (since it's PHP and users can't get to it)get_config_vars() only gets config vars that are already loaded into the template, not directly from the config file, so hidden sections doesn't make sense here. Monte