0
나는이 배열을 가지고 있으며 내용을 얻고 싶습니다. 작동나뭇 가지 For 루프 배열
{% for latest_news in news %}
{% for id, title in latest_news %}
id : {{ id }}
title : {{ title }}
{% endfor %}
{% endfor %}
은,하지만 난이이 작업을 수행 할 수있는 권리 방법이라고 생각하지 않습니다
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
)
)
나는은 다음 시도했다.
어떻게 생겼을 까?
을 – Touki
잘못 읽어 배열을 (내 대답을 무시). 그래, 그게 확실한 길이야. –
점을 추가하면 배열에 직접 액세스 할 수 있다는 것을 잊어 버렸습니다. 그러나 어쨌든 고마워요. 어쩌면이 hels anyone ^^ – Michael