Search code examples
zend-frameworkzend-controller-router

Zend Router Question


I use modules layout to structure my controllers:

:module/:controller/:action

I would like to add a new custom route so that the following url will work.

domain.com/username

where username is a username of any registered user on the website.

Can anyone point me in the right direction?

Thank you


Solution

  • See this blog post for a detailed explanation of how to do this in ZF:

    http://tfountain.co.uk/blog/2010/9/9/vanity-urls-zend-framework