Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

{include file='header.tpl'} Doesn't work! Please HELP!

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
chris8
Smarty n00b


Joined: 18 May 2004
Posts: 2

PostPosted: Tue May 18, 2004 5:30 pm    Post subject: {include file='header.tpl'} Doesn't work! Please HELP! Reply with quote

Hi

When I include my header.tpl file in my client.tpl I get this error:

Fatal error: Smarty error: [in client.tpl line 1]: syntax error: invalid attribute name: 'header.tpl\' (Smarty_Compiler.class.php, line 1497) in G:\Site\P1\private\libs\Smarty.class.php on line 1102

My client.tpl is:
{include file="header.tpl"}

<p>The only line from client.tpl</p>

{include file="footer.tpl"}

I can display the header.tpl fine using a $smarty->display('header.tpl") so I know it's fine but can't figure out what I'm doing wrong.

Any ideas?

Thanks

Chris


Last edited by chris8 on Wed May 05, 2010 11:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Tue May 18, 2004 5:33 pm    Post subject: Reply with quote

you may have magic_quotes_runtime enabled in php.ini .
this needs to be disabled.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chris8
Smarty n00b


Joined: 18 May 2004
Posts: 2

PostPosted: Tue May 18, 2004 6:40 pm    Post subject: Reply with quote

Laughing Yeah that did the trick it works fine now! Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP