|
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 |
morvack Smarty n00b
Joined: 03 Jul 2006 Posts: 1
|
Posted: Mon Jul 03, 2006 6:43 pm Post subject: Template dans template. |
|
|
Bonjour,
depuis peu, j'utilise smarty (depuis 2 jour).
J'aurais aimé savoir commentf aire pour insérer un template dans un autre.
J'ai trouvé ce topic si mais je ne comprend pas la réponse de Pim.
Pouvez vous m'aider? |
|
Back to top |
|
ciboulette Smarty Regular
Joined: 13 Jul 2006 Posts: 45
|
Posted: Thu Jul 13, 2006 11:40 am Post subject: |
|
|
tu fait comme dans la demo du zip
Code: |
{include file="header.tpl" title=foo}
|
file = le fichier a inclure dans ton template
title = nom d'une variable que tu veux faire passé ( tu aurai pu marqué se que tu veux comme nom)
tu apelle ta variable apres comme ça {$title} dans ton template header |
|
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
|