Difference between revisions of "Core/getSetting"

From PunchCMS
Jump to: navigation, search
(New page: __NOTOC__ ==== PCMS_Client->getSetting(value) ==== === Overview === Get the value of a setting in the CMS. === Arguments === '''value''' [string]<br> The name of the settings value you wa...)
 
(No difference)

Latest revision as of 22:41, 25 December 2008

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.
}