|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jbardet Smarty n00b
Joined: 23 Jun 2003 Posts: 3
|
Posted: Fri Jul 25, 2003 1:56 pm Post subject: include file |
|
|
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?
And what is the problem.
Thank you very much |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jul 25, 2003 2:12 pm Post subject: |
|
|
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 |
|
jbardet Smarty n00b
Joined: 23 Jun 2003 Posts: 3
|
Posted: Fri Jul 25, 2003 2:45 pm Post subject: |
|
|
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.
Thank you very much |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Fri Jul 25, 2003 2:58 pm Post subject: |
|
|
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 |
|
|
|
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
|