Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

include file

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
jbardet
Smarty n00b


Joined: 23 Jun 2003
Posts: 3

PostPosted: Fri Jul 25, 2003 1:56 pm    Post subject: include file Reply with quote

Hello!
I tried to include a file "sous_menu.tpl"
but it doesn't work. I have this error:
Parse error: parse error in /home/jbardet/public_html/projet/page_securise/page_jobs/jobs_en_cours/templates_c/%%-20/%%-2064748411/sous_menu.tpl.php on line 39
and I don't understand what is sous_menu.tpl.php? Confused
And what is the problem.
Thank you very much
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Fri Jul 25, 2003 2:12 pm    Post subject: Reply with quote

sous_menu.tpl.php is the compiled template.
there seems to be an error in your template that is not caught by the smarty compiler.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jbardet
Smarty n00b


Joined: 23 Jun 2003
Posts: 3

PostPosted: Fri Jul 25, 2003 2:45 pm    Post subject: Reply with quote

Hello,
I find what the porblem is:
{include file "menu.tpl" name="truc"}
the variable name here can't have all the word. I have to use title for example.
But my new problem is that I don't find in the manuel, which are all the words that I can use. Can you help me?
Excuse me for my bad english. Embarassed
Thank you very much
Back to top
View user's profile Send private message
messju
Administrator


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

PostPosted: Fri Jul 25, 2003 2:58 pm    Post subject: Reply with quote

the "=" is missing between "file" and "menu.tpl", i think that's all of the problem.

you can use every variable-name inside {include} to be passed to the template except of "file" and "assign", they have a special meaning.

HTH
messju
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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