LMSouq
general-dev Open

How to get current route in Symfony 2?

IL
IlyaDoroshin
1 month ago
3 views
Problem Description
How do I get the current route in [Symfony][1] 2? For example, `routing.yml`: somePage: pattern: /page/ defaults: { _controller: "AcmeBundle:Test:index" } How can I get this `somePage` value? [1]: http://en.wikipedia.org/wiki/Symfony

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base