Answers for "print variable in twig"

2

print all variables twig

<ol>
  {% for key, value in _context  %}
    <li>{{ key }}</li>
  {% endfor %}
</ol>
Posted by: Guest on January-04-2021
4

dump all variables twig

{{ dump(user) }}
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language