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

Template dans template.

 
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 -> Language: French
View previous topic :: View next topic  
Author Message
morvack
Smarty n00b


Joined: 03 Jul 2006
Posts: 1

PostPosted: Mon Jul 03, 2006 6:43 pm    Post subject: Template dans template. Reply with quote

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
View user's profile Send private message
ciboulette
Smarty Regular


Joined: 13 Jul 2006
Posts: 45

PostPosted: Thu Jul 13, 2006 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
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 -> Language: French 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