kamikaze_pilot kamikaze_pilot - 3 months ago 30
PHP Question

get a list of defined zend routes

so you can add routes in zend framework with Zend Router's addRoute() method...

but what if I want to get a list of all the defined routes? is there a method that I can use to do so?

Answer

If you are using the Rewrite routing you can call getRoutes() in Zend_Controller_Router_Rewrite. This will give you an array of all chained routes.