Exemple #1
0
 function init()
 {
     parent::init();
     require_once 'fw/handler/form.class.php';
     require_once 'fw/handler/resource.class.php';
     $this->registerHandler(self::WHEN_BEFORE_RUN, array($this, 'form'));
     $this->registerHandler(self::WHEN_BEFORE_RUN, array($this, 'resource'));
     $this->registerHandler(self::WHEN_BEFORE_APP_RUN, array($this, 'app_start'));
     $this->registerHandler(self::WHEN_AFTER_APP_RUN, array($this, 'app_end'));
 }