// This code retrieves the Site URL $jconfig = JFactory::getConfig(); $siteurl = $jconfig->get('site_url'); echo "Site URL: " . $siteurl;
// This code retrieves the version of a plugin $jconfig = JFactory::getConfig(); $pluginversion = $jconfig->get('version', '', 'plg_myplugin'); echo "Plugin Version: " . $pluginversion;
// This code retrieves the name and description of a component $jconfig = JFactory::getConfig(); $componentname = $jconfig->get('component_name', '', 'com_mycomponent'); $componentdescription = $jconfig->get('component_description', '', 'com_mycomponent'); echo "Component Name: " . $componentname; echo "Component Description: " . $componentdescription;The JFactory getConfig function is included in the Joomla CMS package library.