Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

twig if

{% if users %}
    <ul>
        {% for user in users %}
            <li>{{ user.username|e }}</li>
        {% endfor %}
    </ul>
{% endif %}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig
ADD COMMENT
Topic
Name
8+7 =