Method | Description | |
---|---|---|
createUrl ( |
Creates a URL according to the given route and parameters. | |
parseRequest ( |
Parses the given request and returns the corresponding route and parameters. |
public createUrl ( |
||
$manager | the URL manager | |
$route | string | the route. It should not have slashes at the beginning or the end. |
$params | array | the parameters |
return | string | boolean | the created URL, or false if this rule cannot be used for creating this URL. |
public parseRequest ( |
||
$manager | the URL manager | |
$request | the request component | |
return | array | boolean | the parsing result. The route and the parameters are returned as an array. If false, it means this rule cannot be used to parse this path info. |