Hi Guys,
For my works internal website (Intranet) I am constantly making updates and adding/removing new tabs. The problem I have is I have to edit all the files as I have each page separate. What I am wanting to so is design a new site so that the Menu is fixed on the left and if I make a change to it, it applies to all pages. Then all I need to do is edit the Main page for each page.
Can anyone assist on hows best to do this or point me to so examples etc.
I hope this makes sense.
Cheers for your time!!!
Page 1 of 1
Fixed Layout/Menu
#2
Posted 30 December 2011 - 12:47 AM
You'd only need to design the menu contents in one .php file.
And then require/include it in all your other pages.
So you can have a div in your other pages where you want your menu content to go, so you do:
<div id='menu'><?php require('menu.php'); ?></div>
where menu.php is the content of your menu.
And then require/include it in all your other pages.
So you can have a div in your other pages where you want your menu content to go, so you do:
<div id='menu'><?php require('menu.php'); ?></div>
where menu.php is the content of your menu.
#4
Posted 01 January 2012 - 07:55 PM
- ← Need some help messing about with a database please!
- Server Side (PHP, Databases, ASP.NET, etc)
- Complete nightmare contact form! →
Share this topic:
Page 1 of 1
Help

















