Im trying to use make php generate pages by only including a header, is that even possible? Or must I use includes within the page for page components?
<?php
include($_SERVER['DOCUMENT_ROOT'].'/api/header.php');
$GLOBALS['pagetype'] = "main";
$GLOBALS['$pagetitle'] = "Test";
/* content goes here */
?>
Ideally I want all pages to follow this template.
One of my layouts is something like this:
Page headerbar
----
Content
----
Navigation Index
How can I make it place the page content in the correct place?
EDIT: I suck at explaining stuff, sorry about that. What I want is actually, to make a header.php to do all the "include" work for the pages. So I don't need to place includes within specific positions of a page.