Monday, May 30, 2011

Get the Route Name in Symfony

In View, Layout:
sfContext::getInstance()->getRouting()->getCurrentRouteName();

In Action:
$this->getContext()->getRouting()->getCurrentRouteName();

No comments:

Post a Comment