Joomla 3 - How to get value from configuration file?
问题 I'm building a custom component and I just want to get a value from the global config in my controller. I can't find any information about how to do this. Something like... $config = JFactory::getConfig(); $this->_db = $config->get('db'); 回答1: The documentation on how to do it is slightly outdated: http://docs.joomla.org/JFactory/getConfig But if you check the code they actually drop the ampersand function: https://github.com/joomla/joomla-cms/blob/staging/components/com_users/models