Posted By

ef on 02/24/11


Tagged

route


Versions (?)

Get current route name anywhere from application


 / Published in: Symfony
 

I add this snippet because it's a little bit tricky to find it in API documentaion (it is in sfPatternRouting, not in sfRouting, like one would expect).

  1. sfContext::getInstance()->getRouting()->getCurrentRouteName()

Report this snippet  

You need to login to post a comment.