symfony3 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

A route is like mapping a URL to an action (function) in a Controller class. The following topic will focus on creating routes, passing parameters to the Controller class via a route either using YAML or annotation.

Remarks

It's useful to see what is generated by Symfony framework, this one provide tools to watch all routes of an specific application.

From the Symfony Doc, use (in a shell) :

php bin/console debug:router

As well, you can watch all the relevant routes informations in the Framework profiler, in the routing menu : Symfony Profiler



Got any symfony3 Question?