Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Relative includes?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Dieter Erdmann
12-21-04 01:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:04 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.