Hello! Faced with the task. You need to execute Smarty code in the PHP file. Does Smarty have a ready-made solution, or you need to do it in manual
Answer 1, Authority 100%
If you do not need to output a template, and save the result in a variable, you can perform
$ HTML = $ Smarty- & gt; fetch ('template.tpl');