Answer the question
In order to leave comments, you need to log in
How to solve routing problem in Symfony 3?
I started to study Symphony and ran into this problem: There is a method with " /show " routing, and there is a method with " /show/{id} " routing.
Can they be combined somehow? And another strange behavior: " /show " and " /show/ " for some reason are 2 different routings. Those. if just show is specified , then jumping to show/ gives a 404 error. How to fix it?
Before that, I used Codeigniter. There with routing everything is easier.
Answer the question
In order to leave comments, you need to log in
Can they be combined somehow?
symfony.com/doc/current/cookbook/routing/redirect_...
But I would remove it at the nginx level.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question