Table of Contents

getCfg

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method getCfg Reference getCfg() Never Work in Progress

Gets a configuration value. These values come from the configuration.php file which is generally stored in the base directory.

Syntax

string getCfg ( $varname )

$varname string is a string containing the name of the configuration value to retrieve.

Examples

Example

global $mainframe;

echo $mainframe->getCfg( 'ftp_host' );

might produce

Result

ftp.ftphost.com

which is the ftp host value that is stored in the configuration.php file.