RE: Config vars

From: Date: Fri, 14 Dec 2001 16:09:25 +0000
Subject: RE: Config vars
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2305@lists.php.net to get a copy of this message
Mmm, i should have planned this, now i have to modify all my scripts ;( Oh well, it's when you get caught that you learn ;) > You shouldn't use these defaults anyways. In your application, make an > extention of the class and set them there. Then you don't > have to touch > the class files when you update them. > > myapp_setup.php > --------------- > > class My_Smarty extends Smarty { > $this->template_dir = './my/path/to/templates'; > $this->compile_dir = './my/path/to/templates_c'; > $this->config_dir = './my/path/to/configs'; > }

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