config variables in scripts and templates

From: Date: Thu, 20 Feb 2003 01:05:50 +0000
Subject: config variables in scripts and templates
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7968@lists.php.net to get a copy of this message
Hi, Is it possible to create a publicly accessible array of config file variables to the php script? What I mean by that is this. When you load a config file, like so: $smarty->config_load("settings.cfg"); I want to be able to then access those variables from my script, without having to load either load up the config files by creating an instance of Config_Load or by accessing the private _config[0]["vars"] array. Likewise, I feel that there should also be access to the assigned variables through a mechanism other than _tpl_vars, a mechanism that isn't me just bypassing the program. Just my two cents. ~Paul

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