Add Makes
Add Makes

Reputation: 65

In prestashop how to use header and footer in custom php page

I want to display php pages into Prestahop body part. How can i include header and footer into my php file. Is it possible to use external page in prestashop.

Upvotes: 0

Views: 1625

Answers (1)

Sid
Sid

Reputation: 1253

Add following to your PHP file;

<?php
require(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');

ControllerFactory::getController('YourController')->run();

include(dirname(__FILE__).'/footer.php');
?>

Upvotes: 3

Related Questions