i want to do something really simple... use smarty variable inside {php} tags... atm it will only enter empty space... while out of the php tags, it works as a charm.
the code in simplified format::
Code: Select all
{php}
if (curPageURL()=="http://site.com/page")
{echo "<img src=\"images/{$lang}/navig1_05.gif\" />";}
else
{echo "<img src=\"images/{$lang}/navig2_05.gif\" />";}
{/php}
Code: Select all
{$lang}
anyone got a solution to make it work?
its most likely a rather simple thing but im a novice at php and smarty...