What's wrong with class?
Posted: Tue Sep 23, 2003 12:06 pm
<?php
class Template {
function PageHeader() {
echo "<html>\n<head>\n";
}
function DisplayTemplate() {
$this->PageHeader();
}
}
$template = new Template();
$template->DisplayTemplate();
?>
What am I doing wrong?
class Template {
function PageHeader() {
echo "<html>\n<head>\n";
}
function DisplayTemplate() {
$this->PageHeader();
}
}
$template = new Template();
$template->DisplayTemplate();
?>
What am I doing wrong?