I want to be able to create every page on my site with the same style using a template. I have a design for my Template but I'm not sure how I'm gonna get this to work. My first Idea was to include the file passing a Variable (say named $Content) and this variable contians all the content for the page, like this:
PHP Code:
<?
 //Do Stuff...
 
 $Content = "This is the Content of the Page.";
 
 include "Template.php";
?>
However this way the $Content variable could get very big on some of the larger pages.

I then thought about spliting the template into two parts, one for the stuff that'll be before the content and one after. Like this:
PHP Code:
<?
 include "TemplateStart.php";
 
 //Do Stuff...
 
 echo "This is the Content of the Page.";
 
 include "TemplateEnd";
?>
But Surley theres a better way to do this, does anyone have any ideas?