Click to See Complete Forum and Search --> : include header/footers or not?


k0r54
06-25-2007, 06:24 AM
Hi,

When designing a PHP website do you recommend on every page including a header/footer so that you can put the header into one php file and footer in another and then just

<?PHP require(DIR_WS_INCLUDES . "header.php"); ?>


Again the same question for using DIR_WS_INCLUDES for the location of all the includes and so on.

OSCommerce applies this style but want to know if its recommended to use on my site without OSC?

Bit confussed about what to do for my website.

Thanks
k0r54

MrCoder
06-25-2007, 06:36 AM
I have worked with OSC for over a year now and have also taken up this file structure with a few of my own tweaks.

OSC is far from perfect, but it is a good base to learn from.

Start off using there layout then adapt it as you see fit. I guarantee that you will :)

Edit: Also download OSC 3.0 and spot the difference in file structure.

k0r54
06-25-2007, 10:10 AM
I will do at some point - is it good?

MrCoder
06-25-2007, 10:55 AM
It is a big advance, but is still in development.

I like the way it uses that ImageMagik package now thou :)