$urlsset()

Set a new path/URL location

Usage

$paths = $urls->set(string $key, mixed $value);

Arguments

NameType(s)Description
$keystring
$valuemixed

If the first character of the provided path is a slash, then that specific path will be used without modification. If the first character is anything other than a slash, then the 'root' variable will be prepended to the path.

Return value


$urls methods and properties

API reference based on ProcessWire core version 3.0.253