$CFG = new object;
The templates that i want are the header.php and footer.php which are located in the templates folder
my index.php is as follows
<?php
include("application.php");
$DOC_TITLE = "MyMarket Home";
include("$CFG->templatedir/header.php");
?>
<table width=100%>
<tr valign="top">
<td class=normal>
Hello and welcome to MyMarket! This is the homepage, web masters,
use this area:
<ul class=normal>
<li>Provide a basic map of the site</li>
<li>Advertise your on-sale items</li>
<li>Welcome customers to your site</li>
<li>Do useful things</li>
</ul>
<p>To begin shopping, <a href="shopping/">go to the shopping page</a>
or buy the on-special items to your right. Your shopping cart is
always visible on the left side of your screen. Click it to edit
the contents of your basket or to check out.
</td>
</tr>
</table>
<?php
include("$CFG->templatedir/footer.php");
?>