Page 1 of 1
[solved]I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 7:24 pm
by JRSofty
Is there a way to post PHP code in my pages without the template system from trying to process it as a Smarty tag?
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 7:26 pm
by RonnyK
wrap it between ...
Ronny
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 7:27 pm
by Ziggywigged
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 7:30 pm
by RonnyK
OK... 2 answers for 2 different questions...
Are you trying to SHOW the php, then you can use my post.... If you want to execute PHP in the page, then you should use the second logic, using the UDT...
Ronny
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 7:51 pm
by JRSofty
Thanks Ronnie that was what I was looking for to show the PHP.
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 7:56 pm
by JRSofty
Sadly wrapping it in tags didn't seem to work. I'm getting errors in the item when it is displayed. I keep getting these "unrecognized tag" errors.
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 8:17 pm
by RonnyK
OK,
then put {literal} {/literal} around it....
Ronny
Re: I would like to post PHP Code but Smarty tries to process it as a tag.
Posted: Fri Jun 05, 2009 8:23 pm
by JRSofty
That's got it thanks..