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 (
- /author/response/8293085 { page:1 }
- /author/response/8293085/ { page:1 }
- /author/response/8293085/comments/ { page:1 }
- /author/response/8293085/comments/1/ { page:1 }
- /author/response/8293085/comments/2/ { page:2 }
I have problems with urls numbered 1 and 3...and I don't know what to do...