Jump to content

PHP tags in Smarty templates


SeanP

Recommended Posts

I know it is not recommended to use PHP tags in the Smarty templates, and that it poses risks to do so.  However, I'm not 100% sure what exactly those risks would be.  Can someone please elaborate on what the specific risks are in using PHP within the templates?

Link to comment
Share on other sites

Thanks for the reply.  So, it sounds like it might be more procedural (best practice), to help ensure the roles (developer, designer, etc) are clearly defined and protected.  If the developer and designer are the same, it might be a moot point, but still would be best practice to divide the template code and PHP code for future separation of those roles.  I was unsure if there were possible vulnerabilities from external hacks, or something that would make the PHP code less secure if executed through the template as apposed to a hook.

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