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

Header et contenu dynamique

 
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
Sohpoan
Smarty n00b


Joined: 13 Aug 2008
Posts: 1

PostPosted: Wed Aug 13, 2008 9:25 am    Post subject: Header et contenu dynamique Reply with quote

Salut à tous je démarre avec Smarty.

J'ai fait 3 fichiers template :

1) Header.tpl
2) Index.tpl
3) Footer.tpl


ma page index.tpl fait appel au deux autres pages (Header.tpl et Footer.tpl), par exemple:

Code:
PAGE Index.tpl

{include file="Header.tpl"}

{$ARTICLE}

{include file="Footer.tpl"}


Jusqu'à la ca va.

Mes la ou ca ce complique c'est que j'ai une page *.php (avec requete SQL) qui fait aussi appel au template Header.tpl.

Résultat je me retrouve avec la page Header.tpl afficher deux fois !

Comment remedier a ce la ?

Merci d'avance Wink
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