Zend Framework:
I have the following url /base/url/[number]/[string]
OR /base/url/action/controller/param/value
I want in the case of /base/url/[number]/[string] to transform it to
/base/url/controller/a/action/b/id/[number]/name/[string]
The a and b are constants (i.e. each time I see a number in the place of the action, I use the same values).
Where can I catch the action and controller values before they are being dispatched?
You can recieve action and controller in Controller Plugin in routeShutdown() (once after route is selected) or in preDispatch() (before every controller dispatch). I guess you would use routeShutdown. You have Request accessible, so you can set controller and action to anything at all..
How to write plugins