|
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 |
tison06 Smarty Rookie
Joined: 27 Nov 2010 Posts: 7 Location: Nice
|
Posted: Sun Dec 05, 2010 1:27 pm Post subject: Appeler une fonction ! |
|
|
Bonjour, comment faire pour appeler proprement une fonction:
Code: | <?php get_module("header"); ?> |
Comme ceci ça fonctionne très bien:
Code: | {php}get_module("header");{/php} |
Mais existe t-il une méthode plus propre?
Dois-je crée un plugins pour toutes mes fonctions?
Merci d'avance |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Sun Dec 05, 2010 10:30 pm Post subject: |
|
|
Bonsoir,
Quote: |
Dois-je crée un plugins pour toutes mes fonctions?
|
La coutume voudrait que oui car normalement, tu dois découpler la partie php de la partie smarty. |
|
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
|