JApplication/getCfg: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
Line 33: | Line 33: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getCfg | category=getCfg | ||
category=JApplication | category=JApplication | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* |
Latest revision as of 00:16, 25 March 2017
<! removed transcluded page call, red link never existed >
Syntax
getCfg($varname)
Parameter Name | Default Value | Description |
---|---|---|
$varname |
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
function getCfg( $varname )
{
$config =& JFactory::getConfig();
return $config->getValue('config.' . $varname);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples