Url
extends BaseFilter
in package
Url replicates Gryphon's original URL filter, providing absolute urls regardless of leading slash.
Please note this behavior is different from the built in
url()
function which will not automatically inject
a leading slash.
{{ 'foo/bar'|url({'a': 1}) }} becomes /foo/bar?a=1
Table of Contents
- __construct() : mixed
- getDI() : object
- Return default dependency injector
- getFilterName() : string
- Return the filter name
- getFilterOptions() : mixed
- handle() : string
- Handle filter response, will also match against the `client.proxyUrls` config variable.
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getDI()
Return default dependency injector
public
getDI() : object
Return values
object —Phalcon\Di
getFilterName()
Return the filter name
public
getFilterName() : string
Return values
string —getFilterOptions()
public
getFilterOptions() : mixed
Return values
mixed —handle()
Handle filter response, will also match against the `client.proxyUrls` config variable.
public
handle(mixed $string[, mixed $params = [] ]) : string
Parameters
- $string : mixed
- $params : mixed = []