How to get component version from Joomla?
问题 Is there some method to get components version by it's name? I tried a lot of examples but didn't find any that would work. The thing like JComponentHelper::getParams('com_mycomponent')->get('version') doesn't work as it retrieves values from jos_extensions.params row. My components version is only in jos_extensions.manifest_cache row... 回答1: You can use the following: Joomla 2.5: $parser = JFactory::getXMLParser('Simple'); $xml = JPATH_SITE .'/components/com_wrapper/wrapper.xml'; $parser-