Joomla 3配置值

Being new to Joomla the following took me some time to figure out:

This does not work for me:

$config = JFactory::getConfig();
$mf = $config->get('config.mailfrom');

The following does work:

$config = JFactory::getConfig();
$mf = $config->get('mailfrom');

Is this a configuration issue in my Joomla installation or should I update the Joomla documentation here?

Btw, I am using Joomla 3.3.

I would suggest you to use below syntax to get configuration values of Joomla.

$app        = JFactory::getApplication();
$mailfrom   = $app->getCfg('mailfrom');

This will work with almost all Joomla versions.

I got here and for me this is working get('mailfrom') getCfg is no longer a supported method.

I'm using joomla 3.4.3 and below code is working for me.

$config = & JFactory::getConfig();
$mf = $config->get('mailfrom');