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

Smarty et les includes php

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


Joined: 30 Dec 2006
Posts: 1

PostPosted: Sat Dec 30, 2006 5:08 pm    Post subject: Smarty et les includes php Reply with quote

Bonjour à tous,

Bonjour à tous,
J'utilise smarty comme moteur de templates depuis aujourd'hui et je tombe sur un petit probleme.
J'ai mon systeme d'include genre:

Code:
<?php
if($_GET['page'] == 'contact'))
{
   include('contact.php'));
}
elseif($_GET['page'] == 'livre')
{
   include('livre.php'));
}
else
{
   include('accueil.php');
}
?>

Le probleme c'est que quand j'inclus une page avec son templates, celles-ci s'affiche deux fois. en début de page, et aussi à sa place dans la page.
Alors, je voudrais savoir comment il faut faire, pour que ça s'affiche qu'une fois.

Cordialement,
Keisuke
Back to top
View user's profile Send private message
ciboulette
Smarty Regular


Joined: 13 Jul 2006
Posts: 45

PostPosted: Sun Dec 31, 2006 12:16 pm    Post subject: Reply with quote

bon deja tu utilise pas le meilleur systeme pour geré t page mais bon ça c pas grave.

tu peu nous montré a quoi ressemble t page contact etc par exemple
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