class Url extends BaseFilter

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

Methods

__construct()

No description

getFilterOptions()

No description

object
getDI()

Return default dependency injector

string
getFilterName()

Return the filter name

string
handle(string $string, array $params = [])

Handle filter response

Details

in BaseFilter at line 13
__construct()

in BaseFilter at line 22
getFilterOptions()

in BaseFilter at line 31
object getDI()

Return default dependency injector

Return Value

object Phalcon\Di

at line 25
string getFilterName()

Return the filter name

Return Value

string

at line 36
string handle(string $string, array $params = [])

Handle filter response

Parameters

string $string URI
array $params HTTP GET params

Return Value

string