kamikaze_pilot kamikaze_pilot - 1 month ago 7x
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?


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.