Core/useAliases

From PunchCMS
Jump to: navigation, search

PCMS_Client->useAliases(value)

Overview

Set wether URL Aliases should be used or not. Using aliases has a slight performance impact.

Arguments

value [boolean]
TRUE will enable aliases, FALSE disables them. Default is FALSE.

Returns

Nothing.

Example

$objCms = PCMS_Client::getInstance();
 
// Enable aliases.
$objCms->useAliases(TRUE);