Created
June 8, 2014 04:12
-
-
Save manchumahara/55aae6f711246c5f10df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//old way | |
$app = JFactory::getApplication(); | |
$offline = $app->getCfg('offline'); | |
or | |
$config =& JFactory::getConfig(); | |
echo 'Site name is ' . $config->getValue( 'config.sitename' ); | |
//New way | |
//use get() | |
$config = JFactory::getConfig(); | |
$offline = $config->get('offline'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment