RE: Config vars

From: Date: Wed, 19 Dec 2001 06:13:28 +0000
Subject: RE: Config vars
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2334@lists.php.net to get a copy of this message
I tried this and I can't extend the Smarty class with this syntax. I'm a bit new to the OO features of php. Syntactily, what do I need to do to override these values in my derived Smarty class? Thanks, Steve > 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 (#2334) next »