FAQ Database Discussion Community


Zend Framework Routing - child route works but not main route

php,zend-framework,zend-framework2,zend-route,zend-router
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

php,zend-framework2,zend-route,zend-router
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?

zend-framework,zend-framework2,zend-route,zend-router
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?...