Given a local URL convert to a CDN URL (if given URL is in CDN’s path space)
Usage
// basic usage
$string = $proCacheCDN->url(string $url);
// usage with all arguments
$string = $proCacheCDN->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
ProCacheCDN methods and properties
API reference based on ProcessWire core version 3.0.236