Forum Moderators: coopster
I am working with a smarty template system. Some of the variables in the template include <{cat.title}>, <{board.title}> etc. etc.
I am trying to get the var of <{cat.title}> to echo in the template,
only I need to use .php; eg: <{php}>echo $cat["title"]<{/php}>
I cannot for the life of me figure out how to call the <{cat.title}> in php format. <{php}>echo $cat["title"]<{/php}> does not work. Its simple to display <{cat.title}> and get the var results using smarty, but as i mentioned i need to supply arguments, so i need to be able to call the smarty var through php.
i can *not* do: <{php}><{cat.title}><{/php}> the smarty system protection doesnt allow this method.
It needs to be like: <{php}>echo $cat["title"]<{/php}>
as i mentioned before-> <{cat.title}> works fine.
can someone please give me some insight on how i may be able to retrieve the value for the smarty variable using .php instead of smarty?
thank you kindly
frogz