zendframework/zf2-documentation — pull request #413 by DennisBecker (2012-10-18 10:33:45+00:00)
Title: add example with optional field in route

The added example which shows that optional fields have to be filled when using child routes.

There was a discussion on zfforum.de about optionals fields in a parent route result in unsuspected URLs. The thread is located at http://www.zfforum.de/zf2-mvc/9617-falsche-routen-ich-krieg-nen-knall.html

From my understanding, you have to fill the optional fields when using the child route so that the router could match the exact routes. If my example is wrong, please correct it :) That's my first patch for ZF2 documentaion so feedback is highly appreciated!