symfony Routing


Introduction

Routing is the process of mapping a URL to a controller. Symfony has a powerfull Routing component which allows you to define routes.

The Routing component supports a number of configuration formats: annotations, YAML, XML and raw PHP.

Parameters

ParameterDetails
nameThe name of the route. Example: book_show
pathThe path (may contain wildcards). Example: /book/{isbn}
defaultsDefault values of parameters