Jump to content

Include footer and header in custom .php file


espacious

Recommended Posts

Hi,

in Prestashop 1.6 i had some "promo" pages made in .php and i was able to "insert" the header and footer in this way:

$font=new FrontController();
    $font->setMedia();
    $font->displayHeader();

<footer>
<?php
  $font->displayFooter();
?>
</footer>

Now i migrated some sites to 1.7.6 and the footer is not displayed anymore, neither the header.

I wrote a "static" footer.php and header.php and did:

<?php include('somefolder/footer.php');

<- this is working but it's "static" i mean, if i change sth. in the menu i have always to go to header.php and change manualy those things.

How can i include header and footer in my .php file like in 1.6 ?

I know it would be better to write a module but this is not possible at the moment due to lack of time.

Thanks.   

Edited by espacious (see edit history)
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...