Re: [SMARTY] Method Request
| From: | Paul Lockaby | Date: | Thu, 20 Feb 2003 19:06:21 +0000 |
| Subject: | Re: [SMARTY] Method Request | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8034@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
config_load() is meant to mimic the functionality of the {config_load} template function, which is for loading config variables into the template engine. So you want a class method for getting config file vars directly from config files, or getting config file vars already assigned to the templates? MonteAssigned, definitely. As both Tom and I have said, this will speed up execution by not having to load the config file twice. While config_load() is meant to mimic the functionality, I think that it can and should be extended to do more for the programmer. Personally, I store all of my configuration information in a template file, like database information, mail server information, site information, color information, etc. This makes one easy file for someone to edit in order to change a whole bunch of variables. ~Paul