ok im working on a CMS im getting there but i have one big problem which is templating/themeing i have made my own templating system but it isnt practical
here it is:
CODE
include("templates/$theme/template.php"); // $theme varable gets the theme name from a database;
then the template file :
CODE
<?php
echo '<center>';
echo '<table width="674" height="661" border="0">';
echo '<tr>';
echo '<td height="140">';
echo $header;
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td height="23">';
echo $links;
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td id="maintext">';
echo $maintext;
echo '</td>';
echo '</tr>';
echo '</table>';
echo '</center>';
?>
$maintext displays the index text.
so that works ok untill i want to make a page say.. for contact which then the contact page ends up like the from page...
so does any one have any sujestions or tutorials of how i would make a templating system or expand on this one?