|
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 |
Maxime Smarty n00b
Joined: 01 Dec 2010 Posts: 3
|
Posted: Wed Dec 01, 2010 1:56 pm Post subject: Isset and Smarty |
|
|
Hello,
I'm trying to use Smarty for my template system.
I'd like to do something like this :
Code: |
<?php if (isset($_SESSION['affiliate_id']) AND $_SESSION['affiliate_id'] != '') echo "Toto"; ?>
|
For example this isn't enough because i don't use isset() and i get php notice.
Code: |
{if $smarty.session.affiliate_id != ''}
toto
{/if}
|
How can i do the same thing with Smarty ?
Thanks for help. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
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
|