Problem with caching and config_load

From: Date: Wed, 24 Sep 2003 12:28:26 +0000
Subject: Problem with caching and config_load
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10259@lists.php.net to get a copy of this message
Hi I have a problem with config_load if i have caching set to true. The first time i run it, it works fine. The second time i get: Warning: Smarty error: unable to read resource: "cdtipp.conf" in /home/cdtipp/smarty/libs/Smarty.class.php on line 1157 config_dir etc. is set. If i turn off caching evrything works great. My Files: index.php: require('Smarty.class.php'); $smarty = new smarty; $this->template_dir = '/home/cdtipp/smarty/templates/'; $this->compile_dir = '/home/cdtipp/smarty/templates_c/'; $this->config_dir = '/home/cdtipp/smarty/configs/'; $this->cache_dir = '/home/cdtipp/smarty/cache/'; $this->caching = true; $smarty->display('index.tpl'); index.tpl: {config_load file=cdtipp.conf section="home"} {include file="header.tpl"} << Just some HTML <some HTML> {include file="footer.tpl"} << Just some HTML cdtipp.conf :<<is in config_dir bodybgcolor = "#FFFFFF" tbcolor1 = "#FFFFFF" tbcolor2 = "#000000" tbcolor3 = "#767676" [home] pagetitel = "CD-TIPP.CH : HOME" pageid = "0" Does someone please help me, because i am new to smarty. But i want to use it for my application. -- CD-TIPP.CH Franco Fallica alter Zürichweg 14 8952 Schlieren tel. u. fax: 079 340 76 42 franco@cd-tipp.ch http://www.cd-tipp.ch Visit our Forum at http://forum.cd-tipp.ch

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