What is the best, easiest, and fastest way to use a template for a page. Right now I have been using a function to create my template for each page.
$title = "Kick Me";
<?php pageHtmlHeadStart($title)>
<!-- Were Javascript would go -->
<?php pageHtmlHeadEnd(); guiHeader(); ?>
Content went here.
<?php guiFooter; ?>
I uses to use includes...
<?php include('header.php'); ?>
Content went here.
<?php include('footer.php') ?>
I was thinking about using PHP Object to do the same thing too. It would run like the funtions way of doing it. I would create a GUI class tha would have the template wrapper and include some scripts to display content (via echo) that I use a few time over again on different page.
I probably will answer my own questions when say this... I like the current way do it with the functions. I just dont know if this is bad coding habbits.