solved PHP in TPL file?

mark
mark
@mark-b
10 years ago
41 posts
Hi everyone, I have this cool php code and was wondering if it is possible to integrate/insert it in a tpl page?
updated by @mark-b: 06/17/15 09:16:35AM
douglas
@douglas
10 years ago
2,797 posts
You might try using the literal tags to wrap the php code in...

{literal}
PHP Code Here...
{/literal}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
10 years ago
10,148 posts
Actually you want to use the php tag - i.e.

{php}
PHP goes here
{/php}

http://www.smarty.net/docs/en/language.function.php.tpl


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
douglas
@douglas
10 years ago
2,797 posts
Oops, sorry, that is what I meant. Thanks Brian! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
mark
mark
@mark-b
10 years ago
41 posts
THANKS GUYS!

Tags