Code Comments
Programming Forum and web based access to our favorite programming groups.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 sam
e
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 curren
t
template). Is there a way to get local includes working?
thx
Dieter
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.