syl Posted December 6, 2009 Share Posted December 6, 2009 Bonjour à tousComment peut on insérer du php dans un fichier tpl ?SI c'est pas faisable, y'a t il une alternative ?¨Merci Link to comment Share on other sites More sharing options...
Nommam Posted December 6, 2009 Share Posted December 6, 2009 Putainnnnnnnnnnnnnnnnnnngggggggggggggggggg !!!!!!ARRETEZ CE SOIR S'EN EST TROP §§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Tu as ouvert un tpl pour voir ce qu'il y a dedans ?????Tous ce qu'il y a entre { et } c'est du php !!!!!!!!!!!JEKIL au secours !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
Xavier de La Garanderie Posted December 6, 2009 Share Posted December 6, 2009 Je mettrais plutôt entre les balises php: <?php // Du code php ici ?> Parce que entre { et } c'est du Smarty Link to comment Share on other sites More sharing options...
Nommam Posted December 6, 2009 Share Posted December 6, 2009 C'est du code php, executé avec les variables de smarty !sinon, les tpl, ne sont pas vraiment fait pour executer du code, donc tpe un php qui appel un tpl => donc un module pour que ce soit plus propre Link to comment Share on other sites More sharing options...
Yoya Posted December 7, 2009 Share Posted December 7, 2009 Pour du php dans des TPL, c'est {php} {/php} cf. doc smarty.Pierre. Link to comment Share on other sites More sharing options...
syl Posted December 7, 2009 Author Share Posted December 7, 2009 Merci Yoya.Nommam faut se calmer... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now