Re: [SMARTY] Relative includes?

From: Date: Tue, 21 Dec 2004 13:12:24 +0000
Subject: Re: [SMARTY] Relative includes?
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12063@lists.php.net to get a copy of this message
Dieter Erdmann wrote:
Make the subdir your Smarty template dir.
Hmmm the whole point is actually to have a directory hierarchy in my project. I don't want to put all templates in the same directory...
Well I do it like this (in my smarty-setup file) $this->Smarty(); $this->template_dir = 'templates/'.$themedir."/"; $themedir being a value passed to it. Panu

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