$smarty.get.myvar - doesn't return variable contents [SOLVED]
Posted: Mon May 05, 2008 8:06 pm
Hi
Searched in the forum but didn't find any answer.
See many examples where $smarty.get.var_name is used, but won't work with my installation (CMSMS 1.2.4, WinXP, apache).
Did this in a global content block:
But nothing gets displayed.
Then did this:
Always get "NOT SET".
Have no idea what could be wrong.
Thanks for any help!
Ernst
Searched in the forum but didn't find any answer.
See many examples where $smarty.get.var_name is used, but won't work with my installation (CMSMS 1.2.4, WinXP, apache).
Did this in a global content block:
Code: Select all
{assign var=testx value='test'}
{assign var=testy value=$smarty.get.testx}
{$testy}
Then did this:
Code: Select all
{assign var=testx value='test'}
{if isset($smarty.get.testx)}
IS SET
{else}
NOT SET
{/if}
Have no idea what could be wrong.
Thanks for any help!
Ernst