I'm developing a site which has urls like this:
site.com/james
site.com/james/photos
Schema for this urls are this: site.com/USERNAME/APPLICATION
Both username and application names are checking from db yb program logic. I set the route for this but Zend is routing all requests to this route.
But there is same controllers and admin module. When i go to site.com/admin, it looks for username "admin". Or when i go to site.com/james/profile, it tries to find the application named "profile". But there is a action in UserController for this.
How can i implement this feature? For example a front controller which looks for names of Controllers and dispatch the requst to them if controller exists?