Re: [SMARTY] 2.4.0 config_load with custom config class

From: Date: Mon, 03 Feb 2003 18:48:13 +0000
Subject: Re: [SMARTY] 2.4.0 config_load with custom config class
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7485@lists.php.net to get a copy of this message
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.
     
-- Darryl Bleau, B.Sc CS, A+ Creative Director Submersion Corporation Submersion.com 1-780-608-1616

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