Re: [SMARTY] Method Request
| From: | Paul Lockaby | Date: | Thu, 20 Feb 2003 20:34:05 +0000 |
| Subject: | Re: [SMARTY] Method Request | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8053@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
Should getting values directly from config files be a function of Smarty? You can do this: $conf = new Config_File('./configs'); $var = $conf->get('foo','section');I don't think it should be. I think the function should just get values that have already been assigned. You can use the above function in order to get variables that aren't going to be assigned to the template anyway, since I think the whole point of this function is to avoid loading the same variables twice. Just my two cents. ~Paul