Core/getSetting

From PunchCMS
Revision as of 22:41, 25 December 2008 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PCMS_Client->getSetting(value)

Overview

Get the value of a setting in the CMS.

Arguments

value [string]
The name of the settings value you want to retrieve from the CMS.

Returns

The value of the setting.

Example

$objCms = PCMS_Client::getInstance();
 
// Check if caching is enabled for this website.
$blnEnabled = $objCms->getSetting("caching_enable");
if ($blnEnabled) {
    // Caching is enabled.
}