Get or set allowed URL segments
Usage
// basic usage
$array = $template->urlSegments();
// usage with all arguments
$array = $template->urlSegments($value = '~');
Arguments
Name | Type(s) | Description |
---|---|---|
value (optional) | array, int, bool, string | Omit to return current value, or to set value:
|
Return value
array
int
Returns array of allowed URL segments, or 0 if disabled, or 1 if any allowed.
Template methods and properties
API reference based on ProcessWire core version 3.0.236