/** * method must be called after preflight * Sets the paths and loads VMFramework config */ public function loadVm() { // $this->path = JInstaller::getInstance()->getPath('extension_administrator'); if (empty($this->path)) { $this->path = VMPATH_ADMIN; } if (!class_exists('tsmConfig')) { require_once $this->path . '/helpers/config.php'; } tsmConfig::loadConfig(false, true); if (!class_exists('tsmTable')) { require_once $this->path . '/helpers/tsmtable.php'; } if (!class_exists('tmsModel')) { require_once $this->path . '/helpers/tsmmodel.php'; } tsmTable::addIncludePath($this->path . DS . 'tables'); tmsModel::addIncludePath($this->path . DS . 'models'); }