Jump to content

Put some php on .tpl files


Recommended Posts

Hi !


I have some HTML code that I have put on different php files to use it on different pages. So, I'd like to do an include of some of my .tpl files on the header.tpl. But, when I do

<?php include (PATH_TO_ROOT . '/themes/kreatine-theme/inc/bandeauHeaderMessage.inc.php'); ?> 


<?php include "/inc/bandeauHeaderMessage.inc.php";?>

nothing appends.

(I tried to change the value of allow_php_tag on smarty.class.php, but I didn't find the value. And I tried to use the {php} {/php} tags but then I have a white page ...


Thanks a  lot for your answers !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...