ambition13
06-23-2006, 08:51 PM
This may be the wrong way to go about doing this, but I am trying to add some php code to main.tpl.
So what I am doing is using the {php} smarty tag and then inputting my php code then closing with {/php}. However, when I do this I am unable to access the smarty variables, such as {assign var="description" value=$category.DESCRIPTION} using either $description or anything else I can think of in the php code itself.
Is there a way to access these variables from straight php or I am going about this the wrong way completely?
Thanks a lot for your help.
So what I am doing is using the {php} smarty tag and then inputting my php code then closing with {/php}. However, when I do this I am unable to access the smarty variables, such as {assign var="description" value=$category.DESCRIPTION} using either $description or anything else I can think of in the php code itself.
Is there a way to access these variables from straight php or I am going about this the wrong way completely?
Thanks a lot for your help.