I tried this code:
{if $login_status eq '1' }
<a href="{$html_header.base_url}login.php?logout " >Logout </a>
{/if}
and passed the value {$login_status=1}.
This causes:
Uncaught exception 'SmartyCompilerException' with message
'Syntax Error in template "tmpl\admin_login.tpl" on line 2 "{if $login_status eq '1' }" - Unexpected " }"' in C:\wamp
Which is not working. What am I doing wrong ?
I think it's because of the space before the ending bracket.