FAQ Database Discussion Community

Zend Framework Routing - child route works but not main route

I have what I hope is quite a simple question, but it's been taking me a while to figure out... I have tried to setup a /settings route in Zend. I do not have a module for settings but I have setup the necessary views and controllers within the application...

What schould be the output of Zend\Mvc\Router\RouteInterface::assemble() in ZF2

I'm writing my custom router for a Zend Framework 2 project extending Zend\Mvc\Router\RouteInterface. The routes should come from a database (large project with hundreds of pages). A working Router obviously only needs two methods: match() and assemble(). The match one I got working alright. But what about assemble()? What should...

How to route pages using text instead of IDs?

Currently, my Zend application routes using the URL: example.com/news/12 Selects the news with ID 12 to display on page. But the client wants to use only text, example: example.com/news/man-dies-after-burning-himself Does someone knows how can it be done?...