RouterHelper
class RouterHelper extends Helper
RouterHelper manages links between pages in a template context.
Methods
string
path(string $name, mixed $parameters = array(), bool $relative = false)
Generates a URL reference (as an absolute or relative path) to the route with the given parameters.
string
url(string $name, mixed $parameters = array(), bool $schemeRelative = false)
Generates a URL reference (as an absolute URL or network path) to the route with the given parameters.
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 31
setCharset(string $charset)
Sets the default charset.
in Helper at line line 41
string
getCharset()
Gets the default charset.
at line line 31
__construct(UrlGeneratorInterface $router)
Constructor.
at line line 47
string
path(string $name, mixed $parameters = array(), bool $relative = false)
Generates a URL reference (as an absolute or relative path) to the route with the given parameters.
at line line 63
string
url(string $name, mixed $parameters = array(), bool $schemeRelative = false)
Generates a URL reference (as an absolute URL or network path) to the route with the given parameters.
at line line 71
string
getName()
Returns the canonical name of this helper.