|
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 |
Sohpoan Smarty n00b
Joined: 13 Aug 2008 Posts: 1
|
Posted: Wed Aug 13, 2008 9:25 am Post subject: Header et contenu dynamique |
|
|
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 |
|
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
|