config_load API

From: Date: Mon, 09 Dec 2002 15:42:29 +0000
Subject: config_load API
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-387@lists.php.net to get a copy of this message
I'm working on adding the config_load API function, and I see that the assigned config array is wiped clean any time fetch() or display() is called. Does anyone see a problem with removing that behavior? For example: $smarty->config_load('foo.conf'); $smarty->fetch('1.tpl'); $smarty->fetch('2.tpl'); $smarty->fetch('3.tpl'); Whatever was loaded from foo.conf should be retained thereafter, not wiped out by calling fetch(). However, {config_load ...} calls from within the templates could affect the loaded variables. Monte

« previous php.smarty.dev (#387) next »