Re: [SMARTY] help with error
| From: | Paul Lockaby | Date: | Mon, 14 Apr 2003 03:00:23 +0000 |
| Subject: | Re: [SMARTY] help with error | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9236@lists.php.net to get a copy of this message | ||
Paul Lockaby wrote:
Hi, I get the following error: Warning: Invalid argument supplied for foreach() in /www/lockaby/test/php-bin/smarty/Smarty.class.php on line 2354 It doesn't happen the first time a template is compiled, but each subsequent compile results in that error. I can provide any more information required. I will tell you, though, that this page consists of only one template and a configuration file that is loaded from PHP. ~PaulThe only thing I can track it down to is my configuration file that is loaded from PHP. I use the following code to load it: $smarty->config_overwrite = false; $smarty->config_booleanize = true; $smarty->config_load("settings.cfg","global"); config_load works if I call it from the template as follows: {config_load file="settings.cfg" section="global" scope="global"} Any ideas? ~Paul