$config→url()
Get URL for requested resource or module
$config->url('something') is a shorter alternative for $config->urls->get('something').
Example
// Get the admin URL
$url = $config->url('admin');
// Same thing, using alternate syntax
$url = $config->urls->admin; Usage
$string = $config->url($for);Arguments
| Name | Type(s) | Description |
|---|---|---|
$for | string Wire | Predefined ProcessWire URLs property or module name |
Return value
string null
$config methods and properties
API reference based on ProcessWire core version 3.0.252