|
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 |
appel Smarty Rookie
Joined: 27 May 2003 Posts: 29
|
Posted: Wed Aug 13, 2003 1:57 pm Post subject: {if isset($some_smarty_var)} ... {/if} ? |
|
|
Is there a way to do this?
{if isset($some_smarty_var)} ... {/if} |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Aug 13, 2003 1:58 pm Post subject: |
|
|
yes there is a way: simply enter what you posted in your editor and save it as a template |
|
Back to top |
|
appel Smarty Rookie
Joined: 27 May 2003 Posts: 29
|
Posted: Wed Aug 13, 2003 2:09 pm Post subject: |
|
|
OMG. I'm a total noob. |
|
Back to top |
|
jaxyeh Smarty Rookie
Joined: 07 Aug 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 4:16 pm Post subject: |
|
|
or you could also say
{if $whatever} blah blah {/if}
if variable doesn't exit or empty, then skip.... _________________ Jax0rade
Php Quencher!
zerostudios.net
_________________ |
|
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
|