Actions

JApplication/getCfg

From Joomla! Documentation

Revision as of 07:44, 29 November 2008 by Batch1211 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Copyedit.png
This Article Needs Your Help

This article is tagged because it NEEDS REVIEW. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.


Contents

Syntax

mixed getCfg ($varname)

Parameters

Argument Data type Description Default
$varname string The name of the value to get.

Returns

Returns the value of the configuration-property that has been specified by $varname.

Description

JApplication::getCfg allows you to get a specific configuration value that has been specified via Global Configurations in the Admin-Interface.

Example

Let's say we want to get the url to the Help Server that we have specified in the Global Configurations:

$mainframe = JFactory::getApplication();
echo $mainframe->getCfg('helpurl');
 
// OUTPUT: http://help.joomla.org

Config Properties

This is a list of configuration properties that can be received via JApplication::getCfg. The list might be incomplete:

$varname Description
dbtype Type of Database beeing used. For example 'mysql'
host Database Host. For example 'localhost'.
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string
dbtype string


See also