Quantcast

different behaviour for different route version

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

different behaviour for different route version

Guillaume ORIOL
Dear Zend framework users,

Why does the default router (Zend_Controller_Router_Rewrite) use the complete request for some
routes (Hostname) and only its pathinfo for others (Route, Static, Regex)? It is related to the
version number (version 1 routes check against pathinfo).

When the router tests a V2 route with a specific parameter and then a V1 route, the parameter has
been consumed from pathinfo and is no longer available for subsequent routes.

Could somebody give me some explanation of it?
--
Guillaume ORIOL
Software engineer
Technema
Loading...