Page 1 of 1

Help ! Design Pattern

Posted: Mon Apr 12, 2004 2:15 pm
by loongest
I'm having the problem to design the template for the e-commerce application. for the header and footer file, i can simple call include "header.php" and "footer.php" to construct at top and bottom. but my problem is the navigation part... and the body part...
can anyone give me some suggestion. Because i had tried to use table to include "navigation.php" and after that <td> the bodypart...actually will be dynamic part...such as it will display the category of the product, homepage, contact us, feedback form, etc.
can anyone show me some direction. Thanks

Posted: Sun Apr 18, 2004 8:39 pm
by John Cartwright
have design1.php and design2.php

design1.php:

<table>
<tr>
<td>

design2.php

</td>
</tr>
</table>

----------------------

Then on lets say home.php you would have:

include('design1.php');

YOUR CONTENT

include('design2.php');

Design1 wil lmost likely be your header and navigation
Design2 will be your footer... on each page just include those 2 files at the top and bottom...... hope this is what your asking.