Looping through all request variables in a Symfony Twig view

Here is a quick way to access all request variables and output them in a Symfony Twig view:

{% for request in app.request.query.all  %}
   {{ request|raw }}<br/>
{% endfor %}

 

Leave a Reply 0

Your email address will not be published. Required fields are marked *