Re: Config vars

From: Date: Fri, 14 Dec 2001 16:00:50 +0000
Subject: Re: Config vars
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2303@lists.php.net to get a copy of this message
Hi, LIMBOURG Arnaud wrote:
Any hope to move smarty config vars to a separate file, i'm getting tired to copy/paste from across versions when i update smarty ;)))))
You mean stuff like 'var $template_dir' in Smarty.class.php? Don't change these! In your application, do this: $smarty = new Smarty(); $smarty->template_dir = "../tpls": etc.. This means only a little overhead, and it saves you from resetting all your settings when you upgrade Smarty. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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