/ 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).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
sfContext::getInstance()->getRouting()->getCurrentRouteName()