1
According to this page on Smarty's Web site:
PHP Variables in Smarty TemplatesYou should be able to access a PHP variable from the template...However, I am having a rough go of it...
This is what I have put in the "mylinks_topten.html" template:
<{if $rate == 1}>
<img src="<{$xoops_url}>/modules/mylinks/images/chlulinkstop.jpg" border="0" alt="Top Rated Links" /></a>
<{else}>
<img src="<{$xoops_url}>/modules/mylinks/images/chlulinkspop.jpg" border="0" alt="Most Popular Links" /></a>
<{/if}>
It, as you might guess, is executing the else clause every time....Any ideas on what I am doing wrong? Do I need to make some sort of explicit reference to the PHP variable in order to access the value from the template? Thanks!