4 public function __construct()
6 Event
::add('system.403', array($this, 'eventhandler'));
7 Event
::replace('system.404', array('Kohana', 'show_404'), array($this, 'eventhandler'));
8 Event
::add('application.livestatus', array($this, 'eventhandler'));
11 public function eventhandler()
13 $error = new Error_Controller
;
14 Kohana
::$instance = $error;
15 switch (Event
::$name) {
22 case 'application.livestatus':
23 $error->show_livestatus(Event
::$data);