Hi all,
I have just started a new project. I have decided to make it object orientated and straight away I have an error which I don't understand. Does anyone have any ideas?
Error message is:
Parse error: parse error in /usr/HTTPServer/htdocs/en_US/html_output.obj on line 12
The object being called within the object is:
<?
class obj {
function inc_header ( $site_title, $page_title ) {
}
function inc_footer () {
}
} // class obj
?>
The object is called here:
<?
include ("obj.obj");
class HTML_Output {
// error is thrown here
var $w3 = new obj ();
function display_stage1 () {
//$obj -> inc_header ("site title", "page title");?>
<h1>*** Express</h1>
<?php } // display_stage1
} // class HTML_Output
?>