Hi,
I want to split an foreach of images. For this I use array_chunk().
But I don’t get any image output if I us it.
<?php
$thumbs = $page->images();
$i = 1;
/* foreach($thumbs as $image): */
foreach (array_chunk($thumbs, 4, true) as $image):
$container_class = ($i == 1) ? 'item active' : 'item';
?>
Can anybody explain me why this not work and how I can get it to work?
Cheers