Happy New Year everyone. I have been working on a site design and finally figured out the layout of my main body template. Now I am kinda stuck with the development as I want to do it in PHP for easy maintenance and the learning experience.
My design includes:
1. Header.php: Page Title, Search key words, etc.
2. Menu.php: Navigation for the site
3. Banners.php: Links to sponsors and friends
4. Body.php :Main content of the site
As I understand PHP Include() and navigation, each click of an Item in the MENU.PHP file (Pictures for example) should launch a pictures.PHP file. This PHP file should include all 4 of the elements above. Right?
What I am failing to understand it is seems my website becomes more complex with this method. My site seems to grow where each page has 4 elements (3 of which are unique to that page - header, banners and body. only menu is the same for all pages).
As I began developing this, I suddenly thought, why not just go back to the old way I used to do it and make each page complete with its own information. forget using includes?
Am I missing something with regards to the benefit of doing PHP include navigation?
Cheers mates.