|
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 |
dobi19 Smarty n00b
Joined: 21 May 2010 Posts: 1
|
Posted: Fri May 21, 2010 8:18 pm Post subject: include un .tpl dans une page .php |
|
|
Bonsoir,
j'ai un script, placé dans un dossier qui contient des fichier tpl et donc
sur mon index a la racine de mon site je voulais faire un include de ce fichier
il s'affiche mais sans prendre en compte les données.
quel est la fonction qui me permettrais de récupérer les données de se fichier
pour qu'elles s'affichent sur mon index.php
Merci d'avance. |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Wed Jun 02, 2010 2:50 pm Post subject: |
|
|
Bonjour,
Vous voulez faire un 'include 'votre_fichier_tpl'' dans un fichier PHP ?
Si c'est le cas, pourquoi ne pas rester dans un context de smarty et donc de créer un fichier index.tpl (par exemple, afin de garder la relation nom de l'appelant<-> appelé) et y faire un include avec smarty dedans ?
Cordialement |
|
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
|