/** * 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('VmConfig')) require_once($this->path .'/helpers/config.php'); VmConfig::loadConfig(false,true); JTable::addIncludePath($this->path.DS.'tables'); VmModel::addIncludePath($this->path.DS.'models'); }