i have a array like this and want to get the content.
Array
(
[0] => Array
(
[0] => 1
[id] => 1
[1] => Testnews
[title] => Testnews
[2] => Dies ist eine kleine <strong>Testnews!</strong>
[text] => Dies ist eine kleine <strong>Testnews!</strong>
[3] => 1
[type] => 1
[4] => 1
[timestamp] => 1
[5] => 0
[status] => 0
)
)
I tried the following:
{% for latest_news in news %}
{% for id, title in latest_news %}
id : {{ id }}
title : {{ title }}
{% endfor %}
{% endfor %}
That works, but i don't think this is the right way to do this.
How should it look like?