<?php
define ('NOAUTOCONNECT',true);
include_once("smarty/libs/Smarty.class.php");
include_once("class.Event.php");
include_once("class._Main.php");
class Main extends _Main {
function Main(){
$this->onLoad = array(&$this,'Process');
$this->onRender = array(&$this,'Draw');
return parent::_Main();
}
function Process(){
return true;
}
function Draw(){
return true;
}
function __destruct(){
unset($this);
}
}
class Sample extends Main {
function Sample(){
$this->onError = array(&$this,'CustomErrorHandler');
parent::Main();
}
function CustomErrorHandler(){
echo "ERROR NIVEL 1 <br>";
return true;
}
function __destruct(){
unset($this);
}
}
$oMain = new Sample();
?>
|