Edent, 🆕 blog! “Symfony - multiple paths to the same route within a controller”
I couldn't work out how to use Route Aliasing within my controller. I couldn't find anything in the documentation about it. But, thanks to a StackOverflow comment it is possible. Suppose you want users to be able to access a page using /users/123 and /people/123 - with both routes …
👀 Read more: https://shkspr.mobi/blog/2023/05/symfony-multiple-paths-to-the-same-route-within-a-controller/
⸻
#HowTo #php #Symfony
Add comment