http://www.phpfreaks.com/tutorials/71/0.php
how do they get the footer, header, and menu attached to the each and every page. I know they are using the include function, but there must be something else. If they were just using the include they would have to make a separate template for 0.php, 1.php, 2.php, 3.php. Or maybe not.
So my question is, how do you get everpage to look the same through directories with using ONE TEMPLATE file.
1 template file for a site with directories
Moderator: General Moderators
I believe the page you are refering to uses include, and have one seperate file for each part. header, right, left and footer.
I can't really see any other way of doing this, since the data have be included from somewhere.
+ by having a seperate ile for each part will also make the work of editing much easier.
I can't really see any other way of doing this, since the data have be included from somewhere.
+ by having a seperate ile for each part will also make the work of editing much easier.
-
MeltedPixel
- Forum Newbie
- Posts: 8
- Joined: Sun Jun 29, 2003 12:22 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Please don't cross-post, you don't need multiple threads open on the same question:
viewtopic.php?t=10209
Mac
viewtopic.php?t=10209
Mac