hi,
sometimes in the template [
not in php controler's code ] it's useful to create new variable and assign it's value depending on some condition. eg color of line can depend on this or or that... and it's much cleaner to decide about it in the template itself.
can something similar to smarty's:
Code:
{if $a==$b}
{assign var='style' value='s0'}
{else}
{assign var='style' value='s1'}
{/if}
...
...
<div style="{$style}">..</div>
<span>..</span>
<div style="{$style}">..</div>
be done with vB4 templates?
thanks!