Generates a URL based on a route
public fromRoute ( string $route = null, array | Traversabl\Traversable $params = [], array | boolean $options = [], boolean $reuseMatchedParams = false ) : string | ||
$route | string | RouteInterface name |
$params | array | Traversabl\Traversable | Parameters to use in url generation, if any |
$options | array | boolean | RouteInterface-specific options to use in url generation, if any. If boolean, and no fourth argument, used as $reuseMatchedParams. |
$reuseMatchedParams | boolean | Whether to reuse matched parameters |
Résultat | string |