Answer the question
In order to leave comments, you need to log in
Why is for in not outputting data?
actually this is the code
{{ dump(options) }}
{% for options in option|e %}
{{ dump(option['url']) }}
{% endfor %}
array (size=4)
0 =>
array (size=2)
'url' => string '464600' (length=6)
'code' => string '46.46.00' (length=8)
1 =>
array (size=2)
'url' => string '341967' (length=6)
'code' => string '34.19.67' (length=8)
2 =>
array (size=2)
'url' => string '255548' (length=6)
'code' => string '25.55.48' (length=8)
3 =>
array (size=2)
'url' => string '255544' (length=6)
'code' => string '25.55.44' (length=8)
{% for options in option|e %}
{{ dump(option['url']) }}
{% endfor %}
Answer the question
In order to leave comments, you need to log in
{% for option in options %}
{{ dump(option['url']) }}
{% endfor %}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question