Seperating content from design
Posted: Mon Dec 28, 2009 3:36 am
So this is what I want to do.
I want to be able to have my left navigation bar in another file.
So let's say you have
<div id="navigation">
#include "leftbar.php"
</div>
and... leftbar.php would include the following:
<a href="link1.html">Link 1</a>
<a href="link2.html">Link 2</a>
etc. etc.
Do you understand?
So that way let's say I decide to change a menu item I don't have to go through and change every page on my website. Can anyone help?
Regards
I want to be able to have my left navigation bar in another file.
So let's say you have
<div id="navigation">
#include "leftbar.php"
</div>
and... leftbar.php would include the following:
<a href="link1.html">Link 1</a>
<a href="link2.html">Link 2</a>
etc. etc.
Do you understand?
So that way let's say I decide to change a menu item I don't have to go through and change every page on my website. Can anyone help?
Regards