Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Twig Emtpy Variable -> Exception?
- {% for item in items %}
- <div class="description">
- Title: {{ item.name }}<br />
- Price: {{ item.price }}
- </div>
- {% else %}
- <p>...</p>
- {% endfor %}
- {{ item.price|default("nothing") }}
- {% if item.price is defined and item.price not in [''] %}
- {{ item.price }}
- {% endif %}
- twig:
- strict_variables: false
Add Comment
Please, Sign In to add comment