Re:RE: The problem with Smarty

From: Date: Sun, 17 Feb 2002 22:35:05 +0000
Subject: Re:RE: The problem with Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2717@lists.php.net to get a copy of this message
> > Like others, I also found myself changing the paths directly in the the > class files. Perhaps your recent examples of extending Smarty to > specify the > paths should be explained from the very beginning (or perhaps it > alreay is - > I'm a version or two behind). In my case, I have two sets of > paths - one for > my development Windows box and one for the Linux server with an if/else > statement to switch between them. btw, it isn't always necessary to extend the class to setup your directory paths: $smarty = new Smarty; $smarty->config_dir = "/my/path/to/configs"; $smarty->template_dir = "/my/path/to/templates"; $smarty->display('index.tpl'); These concepts are used throughout the Smarty documentation. But sometimes it is more convenient to extend the class with customized configurations, then use something like "$smarty = new My_Smarty;" in your application. Monte

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