web2008 Posted August 1, 2019 Share Posted August 1, 2019 Is it possible to call a php script in a tpl file using smarty variables ? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted August 1, 2019 Share Posted August 1, 2019 Yes by using the php smarty tag and enabling php tags in the configuration, however, it is not advised. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 2, 2019 Share Posted August 2, 2019 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.