mcatze
Well-known member
Hi guys,
i have some data to display in the template, but i couldn't get the data from the array. Can someone give me a hint?
If i set a dump() i got these vars. But i didn't get the data in foreach.
i have some data to display in the template, but i couldn't get the data from the array. Can someone give me a hint?
If i set a dump() i got these vars. But i didn't get the data in foreach.
HTML:
{{ dump(vars()) }}
<div class="block">
<div class="block-container">
<div class="block-body">
{$movie.title} <br>
{$movie.overview} <br>
{$movie.releaseDate} <br>
{$movie.revenue} <br>
{$movie.budget} <br>
{$movie.runtime} <br>
{$movie.homepage} <br>
<xf:foreach loop="$movie.videos" value="$videos">
{{ dump($videos) }}
<xf:foreach loop="$videos" value="$video">
{$video.name}
{$video.key}
</xf:foreach>
</xf:foreach>
</div>
</div>
</div>