RouterHelper::path()

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.

Parameters

string $name The name of the route
mixed $parameters An array of parameters
bool $relative Whether to generate a relative or absolute path

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.