I have an index page, which consists of 6 parts, all includes. Includes are header.php, menu.php, submenu.php, body.php, bottommenu.php, and footer.php.
Now, currently, I have this for the body.php include...
Code: Select all
<?php
if($pageid != '')
{
include($pageid);
}
else
{
include("body.php");
}
?>And for some reason, for the life of me, I can't wrap my head around it.
Any suggestions guys? or for that matter, a better way of doing what I'm trying to do?
Thanks in advance, ciao.