Symfony Twig: Accessing global values reference
Here is a reference list to access global values within Twig:
For more Symfony Twig shortcuts, view the Twig Cheatsheet with recent updates added, a perfect reference for Symfony web developers.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | For $_POST variables use this : {{ app.request.parameter.get("page") }} For $_GET variables use this : {{ app.request.query.get("page") }} For $_COOKIE variables use this : {{ app.request.cookies.get("page") }} For $_SESSION variables use this : {{ app.request.session.get("page") }} |