The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

How to list all routes

Mike Starov's Avatar

Mike Starov

25 May, 2012 06:57 PM

How do you get an iterator to all routes in the router object? I need it to be able to show a usage message for my API implemented with Slim. So far I just hacked Slim_Router and added getAllRoutes method to return $routes member.

I must say that slim is a nice framework. I enjoy working with it.

  1. 1 Posted by Epoc on 26 May, 2012 07:45 PM

    Epoc's Avatar

    +1 to add this method in the native framework.

  2. Andrew Smith closed this discussion on 02 Dec, 2012 07:29 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac