Jump to content

Insert PHP code into a template .tpl


Recommended Posts

Hi all

 

In version 1.5 of Prestashop, how I can insert PHP code into a template .tpl? I tested with {include file = "file.php"}, {include_php file = "file.php"} and {php} {/ php} and I get nothing. {php}

 {/ php} proudce an error. The includes do not work. The template is in the themes folder and the php file in the root of the web.

 

Thank you very much!

Link to comment
Share on other sites

Hi all

 

In version 1.5 of Prestashop, how I can insert PHP code into a template .tpl? I tested with {include file = "file.php"}, {include_php file = "file.php"} and {php} {/ php} and I get nothing. {php}

 {/ php} proudce an error. The includes do not work. The template is in the themes folder and the php file in the root of the web.

 

Thank you very much!

 

it's weird because for me {php}{/php} works well in latest prestashop version

Link to comment
Share on other sites

  • 5 months later...
  • 2 years later...
×
×
  • Create New...