Core/setBasePath

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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/");