symfony Routing

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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


Got any symfony Question?