|
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 |
jcfra Smarty n00b
Joined: 17 Mar 2012 Posts: 1
|
Posted: Sat Mar 17, 2012 12:25 am Post subject: Convertir un fichier .tpl en code php |
|
|
Bonjour à tous !
J'essaye en vain depuis plus de trois jours à convertir ceci en php :
-------------------------------------------------------
{$baseurl}/{insert name=get_seo_profile value=a username=$smarty.session.USERNAME|stripslashes}
{$smarty.session.USERNAME|stripslashes}
-------------------------------------------------------
Par exemple, j'ai dernièrement réussi à convertir ceci en php :
{if $smarty.session.USERID ne ""}
Je suis connecté !
{/if}
-------------------------------------------------------
<?php
if ($_SESSION['USERID'])
{
echo "Je suis connecté !";
}
?>
Quelqu'un aurait une idée ?! |
|
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
|