/** * Init our framework */ public function onAfterRoute() { if ($this->_isZo2()) { include_once __DIR__ . '/framework/includes/bootstrap.php'; Zo2Framework::getInstance()->init(); Zo2Factory::joomlaHook(); Zo2Factory::ajax(); } }