my question regards Zend Framework 2. I have two routes that overlap a bit - one is in the form of:
/announcements/index[/:type][/:status]
and the other:
/announcements[/:action][/:id]
They are defined in configuration in the same order as above.
The purpose is that almost all of my routes have the same pattern, that is action + ID, but for the index page, which displays a list of items, I want filtering possibilities - I want the user to be able to filter announcements by type and their status (accepted/rejected/awaiting moderation). The problem is that for some reason the router selects the second route as the active one when I go to /announcements or /announcements/index. What is the best idea to solve that?
Thanks.