Hay algo muchisimo mas faicl y sencillo chicos.....
Código PHP:
<?PHP
session_start ();
ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?PHP
if(file_exists('./m/' . $_GET['m'] . '.php'))
{
$m=$_GET['m'];
}
elseif(empty($_GET['m']) or $_GET['m']=='index')
{
$m='index';
}
else
{
$m='error';
}
?>
</head>
<body link="#333333" vlink="#333" alink="#333" leftMargin="0" topMargin="0" rightMargin="0" bottomMargin="0" onload="load();MM_preloadImages('img/barmenu/inicio_2.jpg','img/barmenu/nosotros_2.jpg','img/barmenu/catalogo_2.jpg','img/barmenu/contacto_2.jpg','img/barmenu/comprar_2.jpg')" onunload="GUnload()">
<div id="body">
<?PHP
include './m/' . $m . '.php';
?>
</div>
</body>
</html>
<?php ob_end_flush(); ?>
creas una carpeta que se llame "m" y adentro ponés las plantillas, ejemplifiación: index.php?m=contactos
buscará contactos.php dentro de la carpeta "m", saludos.