Re: [SMARTY] 2.4.0 config_load with custom config class

From: Date: Mon, 03 Feb 2003 19:11:34 +0000
Subject: Re: [SMARTY] 2.4.0 config_load with custom config class
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7488@lists.php.net to get a copy of this message
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:
Are 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 class
     
Would this be why when I upgraded to 2.4.0 my nice site prototype turned 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 to
       
fix?
     
Ferdinand 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.
    
         
     


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