|
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 |
yckadam Smarty n00b
Joined: 23 Oct 2008 Posts: 1
|
Posted: Thu Oct 23, 2008 8:31 am Post subject: Condition Checking in Smarty tag |
|
|
Hello Friends, i have registered one object by using
$smarty->register_object("Obj", $object);
in .tpl file i want to check condition like
{if Obj->username neq ""}....{else}....{/if}
at a time of running file it gives error.
can anybody help me to solve this.
[/code] |
|
Back to top |
|
Celeb Administrator
Joined: 17 Apr 2007 Posts: 1025 Location: Vienna
|
Posted: Thu Oct 23, 2008 8:51 am Post subject: |
|
|
Try
Code: | {if $Obj->username neq ""}....{else}....{/if} |
_________________ Darn computers always do what I tell them to instead of what I want them to do. |
|
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
|