| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
getCfg |
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.
string getCfg ( $varname )
| $varname | string | is a string containing the name of the configuration value to retrieve. |
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.