I'm building a content management system using OOP. I've got my page working with XHTML/CSS, and now I'm trying to add PHP to it. When my index.html page loads, it includes some basic files, and creates a new Page object. The page object creates a menu object that should then print the menu. Instead, it prints part of my php code to the screen. Anyone have any ideas? Here's my code:
[index.html]
<?php
require_once('Includes/Session.php');
require_once('Includes/Page.php');
$page = new Page();
?>
<!DOCTYPE html PUBLIC"-//W3C/DTD XHTML 1.0 STRICT//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> . . . </head>
<body>
<div id="leftMenu">
<a href="#" class="myMenu">Home</a> <span class="myMenuLine">|</span>
<a href="#" class="myMenu">Campuses</a> <span class="myMenuLine">|</span>
<a href="#" class="myMenu">Administration</a> <span class="myMenuLine">|</span>
<a href="#" class="myMenu">School Board</a> <span class="myMenuLine">|</span>
<a href="#" class="myMenu">Technology</a>
<br />
<br />
<?php
$menu = $page->makeMenu();
$menu->printMenu();
?>
</div>