Core/setBasePath

From PunchCMS
Jump to: navigation, search

PCMS_Client->setBasePath(path)

Overview

Set the base path of the website. This overrides the value from the singleton method.

Arguments

value [string]
Base path to the root folder of the website.

Returns

Nothing.

Example

$objCms = PCMS_Client::getInstance();
 
$strPath = $objCms->setBasePath("/var/www/website/");