Re: [SMARTY] 2.4.0 config_load with custom config class
| From: | Darryl Bleau | Date: | Mon, 03 Feb 2003 19:17:11 +0000 |
| Subject: | Re: [SMARTY] 2.4.0 config_load with custom config class | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7490@lists.php.net to get a copy of this message | ||
Ok I take that back.
I promise it didn't work when I restarted Apache... but I was just checking again to be sure and setting it back to a section= works now. Maybe it was a browser or proxy cache problem, I'm not sure.
Anyway, as far as I can tell it works fine. Thanks Monte.
Darryl Bleau wrote:
Hi Monte, I am using PHPA, I restarted Apache and deleted everything in /cache and /templates_c This: {*} {config_load file="site.cfg" section=$confSection scope="global"} {*} {config_load file="site.cfg" scope="global"} Will work fine and show me my nice page, but this: {config_load file="site.cfg" section=$confSection scope="global"} {*} {config_load file="site.cfg" scope="global"} {*} Will not. $confSection is set in the php code, obviously. (This is part of a common template which all my templates compile in.) I don't *think* it's just something with my setup, but that's always a possibility. :) Seems to work with 2.3.1, of course. If there is anything I can do to help to try to figure this out, let me know, I'm more than willing. Monte Ohrt wrote:-- Darryl Bleau, B.Sc CS, A+ Creative Director Submersion Corporation Submersion.com 1-780-608-1616Are you sure you got all the compiled templates removed? And restart apache if you're using php accelerator? There shouldn't be any calls to _config_load anymore. Monte On Mon, 2003-02-03 at 12:48, Darryl Bleau wrote:Oh yes, I tried that first and got the same error. Works fine if I use {config_load file="site.cfg"} but not {config_load file="site.cfg" section="section"} Nichlas Löfdahl wrote:Hello Darryl! Try clean the directory with compiled templates (usally templates_c/), that could solve the problem Good luck /Nichlas ----- Original Message ----- From: "Darryl Bleau" <darrylbleau@submersion.com> To: <smarty-general@lists.php.net> Sent: Monday, February 03, 2003 7:14 PM Subject: Re: [SMARTY] 2.4.0 config_load with custom config classfix?into this?: *Fatal error*: Call to undefined function: _config_load() in */xxx/templates_c/%%142/%%1426728073/xxx.tpl.php* on line *3* I use config file sections heavily in my site.. is there an easy way toWould this be why when I upgraded to 2.4.0 my nice site prototype turnedFerdinand Beyer wrote:While reading the 2.4.0 source I've found out that custom config classes won't work: On line 1754, the class specified by $this->config_class is loaded, but on the next line a Config_File object is created, independent of the $config_class setting.