Exemplo n.º 1
0
 public function initPlugins()
 {
     K_Plugins::addDirectory(APP_PATH . '/plugins');
 }
Exemplo n.º 2
0
 /**
  * Class destroy
  */
 public function __destruct()
 {
     if (!$this->rendered) {
         $this->render();
     }
     K_Plugins::callHook('controller.beforeDestroy', array('controller' => &$this));
     if (method_exists($this, 'onDestroy')) {
         $this->onDestroy();
         // event
     }
     K_Plugins::callHook('controller.afterDestroy', array('controller' => &$this));
 }