Page 1 of 1

1 template file for a site with directories

Posted: Sun Jun 29, 2003 1:57 am
by griz
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.

Posted: Sun Jun 29, 2003 6:04 am
by Zeceer
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.

Posted: Sun Jun 29, 2003 5:24 pm
by MeltedPixel
Exactly, Zeceer.
It really comes in handy, and its really simple to use.

Posted: Mon Jun 30, 2003 3:56 am
by twigletmac
Please don't cross-post, you don't need multiple threads open on the same question:
viewtopic.php?t=10209

Mac