Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 292
kamikaze_pilot Avatar asked Nov 01 '11 10:11

kamikaze_pilot


1 Answers

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.

like image 125
Kees Schepers Avatar answered Oct 18 '22 08:10

Kees Schepers