Jump to content

How do i make a new page with header and footer on?


Recommended Posts

  • 7 months later...

It's easy:

1.) Make a file .php to the root as: whatyouwant.php

with:

<?php
include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');
$smarty->display(_PS_THEME_DIR_.'whatyouwant.tpl');
include(dirname(__FILE__).'/footer.php');
?>



2.) Make a TPL file to your themes dir with:

{capture name=path}{l s='Main Title'}{/capture}
{include file=$tpl_dir./breadcrumb.tpl}
{l s='Main Title 2'}



And add to the file, what you want !
That's all :)

Byebye

Link to comment
Share on other sites

It's easy:

1.) Make a file .php to the root as: whatyouwant.php

with:

<?php
include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');
$smarty->display(_PS_THEME_DIR_.'whatyouwant.tpl');
include(dirname(__FILE__).'/footer.php');
?>



2.) Make a TPL file to your themes dir with:

{capture name=path}{l s='Main Title'}{/capture}
{include file=$tpl_dir./breadcrumb.tpl}
{l s='Main Title 2'}



And add to the file, what you want !
That's all :)

Byebye





As i understand direct php not allowed, so could you please show how to connect to datbase from this page and make query and show some results.

Thanks
Link to comment
Share on other sites

×
×
  • Create New...