Hi
I'm not sure what the best way to approach this is. Perhaps I am over-thinking it.
I want to include a header because its the same on every page on my site. (header.php).
I guess the part I don't like is having divs open in one file and close in another. It seems sloppy (ie #wrapper opens in header.php and closes in footer.php). At the same time if I do that it means I have multiple include statements in my php file which to some degree defeats the purpose of having a common header file.
I hope its clear what I'm trying to decide.
Thanks!
Should I have it like this:
...
<body>
<div id="wrapper">
<div id="head">
<? include 'header.php'?>
</div>
<div id="content">
text body here
</div>
.
.
.
</div>
==============
OR or or or
==============
header.php:
<div id="wrapper">
<div id="head">
--- header info, menu, etc ---
</div>
index.php:
<body>
<? include 'header.php ?>
<div id="content">
.
.
.
</div>
<? include "footer.php" ?>
</body>