I am developing a website with the following URLs:
site.com/james
site.com/james/photos
The scheme for these URLs is: site.com/USERNAME/APPLICATION
The username and application name are checked using the db yb program logic. I set a route for this, but Zend directs all requests to this route.
But there are the same controllers and admin module. When I go to site.com/admin, it looks for the username "admin". Or when I go to site.com/james/profile, it tries to find an application called "profile". But there is an action in the ActionController for this.
How can I implement this feature? For example, a front controller that looks for controller names and sends them a request if the controller exists?
source
share