This is the routing in my Symfony2 App (part of routing.yml):
app_my_responses_response:
path: /author/response/{responseId}/comments/{page}
defaults: { _controller: AppBundle:Response:view, page: 1 }
methods: [GET]
requirements:
responseId: \d+
Objective of this route – execute on next cases (
I have problems with urls numbered 1 and 3...and I don't know what to do...
The best way to solve this problem is remove requirements and create another route for 1st and 3th pattern. It works for me. Thanks @kba!