ProCacheCDN::cdn method
Given a local URL convert to a CDN URL (if given URL is in CDN’s path space)
Usage
// basic usage
$string = $procache->cdn->url(string $url);
// usage with all arguments
$string = $procache->cdn->url(string $url, bool $requireExt = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$url | string | |
$requireExt (optional) | bool | Require valid CDN file extension as defined in configuration? Default:false |
Return value
string
$procache->cdn methods and properties
API reference based on ProcessWire core version 3.0.252