class Page {
public $html;
public function __constructor(){
}
public function BuildHtml($tpl_name) {
$this->html = '132';
}
}
final class Page_Main extends Page{
public $html;
public function __constructor(){
parent::__constructor();
}
function BuildHtml() {
parent::BuildHtml('page_main.tpl');
$this->html = parent::html;
}
}
$page = new Page_Main();
$page->BuildHtml();
echo $page->html;
Fatal error: Undefined class constant 'html'