RouterHelper::url()

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.

Parameters

string $name The name of the route
mixed $parameters An array of parameters
bool $schemeRelative Whether to omit the scheme in the generated URL reference

Return Value

string The generated URL reference

See also

UrlGeneratorInterface
doc_Symfony
2016-10-28 06:31:15
Comments
Leave a Comment

Please login to continue.