RE: Config vars

From: Date: Mon, 17 Dec 2001 08:49:47 +0000
Subject: RE: Config vars
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2317@lists.php.net to get a copy of this message
Hi, Maciej Uhlig wrote:
So, I'm not happy with your answers and solution. Could you propose something better?
Another solution, which I use in all my applications, is to just include a config file. Have Smarty include a configfile (a php file with $config_ variables) from the current dir to read its config. Then even if Smarty is in the include path and is somewhere in /usr/lib/smarty, then it still includes the config.inc.php file that is in the directory from which you are currently running. Another advantage is that the configvars, being global, don't have to be copied between the Smarty class and the Smarty_Compiler class. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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