|
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 |
math43 Smarty n00b
Joined: 11 Feb 2011 Posts: 1
|
Posted: Fri Feb 11, 2011 5:38 pm Post subject: Plusieurs templates dynamiques |
|
|
Bonjour à tous,
Je commence tout juste à utiliser Smarty que je trouve intéressant mais je me retrouve face à un problème pour la création d'un site.
J'ai un fichier index.php dans lequel je fais des requetes sur ma base
Pour afficher le résultat j'ai donc un fichier index.tpl
J'ai également des fichiers header.php et sidebar.php (et donc header.tpl et sidebar.tpl) dans lesquels je fais egalement des requêtes.
J'affiche bien les resultats de chacun en appelant indiciduellement chaque fichier.
Mon problème étant de savoir comment faire pour tout afficher ensemble.
Index est mon contenu mais je veux le header et la sidebar avec celui-ci.
Comment faire ? Parce que mes tentatives d'include ne fonctionnent pas.
D'avance merci. |
|
Back to top |
|
boros1124 Smarty n00b
Joined: 22 Mar 2011 Posts: 1
|
Posted: Tue Mar 22, 2011 1:30 pm Post subject: css+html |
|
|
Je voudrais savoir comment travailler avec la page en HTML et CSS3.
|
|
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
|