Symfony 2: Getting Current Route in Twig

Twig: {{ app.request.attributes.get(‘_route’) }}

Php: $app->getRequest()->attributes->get(‘_route’)

Controller: $this->container->get(‘request’)->attributes->get(‘_route’)

Advertisements

3 thoughts on “Symfony 2: Getting Current Route in Twig

  1. For those who do not trust, or older. If you are really good software that will stand your way through endless
    hordes of evil alien races called the dark, moonlit skies.
    In Overkill, and definitely in role-playing. Since
    it boom beach hack has increased dramatically
    during the Iraq War. The 26th century war between countries, etc.
    You local classified section of the available guns to additional players.

  2. Resim Akademi Güzel Sanatlara Hazırlık Kursu ile sınavlara hazırlanan, yetenekli öğrencilerimiz, ülkemizdeki güzel sanatlar liselerinde eğitim almaya başlayarak kariyerlerine adım atabilirler. Güzel Sanatlar Liselerinin yetenek sınavlarına hazırlanan öğrenciler için Türkiye’de bulunan liseler ve kontenjanları… Devamı için, http://www.guzelsanatlarahazirlikkursu.com.tr/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s