Jump to content

PHP script in a .tpl file


web2008

Recommended Posts

12 hours ago, web2008 said:

Is it possible to call a php script in a tpl file using smarty variables ?

to add to what Steven says, you shouldn't really consider enabling the feature - almost certainly whatever you're trying to do could be done in Smarty in the template, or in PHP with a hook.... I can't think of many circumstances where you'd need to use {php} in the template - perhaps convenience when you've been given old code that could previously been used in the template, but they'd be no guarantees that would work anyway without some rewriting.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated