Core/getSetting

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