Relative includes?

From: Date: Tue, 21 Dec 2004 11:53:05 +0000
Subject: Relative includes?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12060@lists.php.net to get a copy of this message
Hi, I'm having trouble with the Smarty include command. This is my directory structure: templates subdir A.tpl inc.tpl I want to include the file 'inc.tpl' in 'A.tpl'. Both files being in the same directory, I would expect this to work in A.tpl: { include file="inc.tpl" } However, this yields an error - 'inc.tpl' is not found. Instead, I have to write: { include file="subdir/inc.tpl"; } It seems that the include path is always relative to the 'templates' root directory instead of the current directory (i.e. the directory of the current template). Is there a way to get local includes working? thx Dieter

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