Im using 2amigos Gallery Widget for Yii2 to display images
<?php foreach ($img as $key=>$row): ?>
<div class="classes_inside_item bordered_wht_border">
<?php
foreach (explode(';',rtrim($row['images'],';')) as $key_img => $value_img)
{
?>
<?php
$images=[Yii::getAlias('@web').'/'.$value_img];
?>
<?php
}
?>
</div>
<?php echo dosamigos\gallery\Gallery::widget(['items' => $images]); ?>
<?php endforeach; ?>
By using above code im able to show only one image though it has 3 images in database (images path is saved in database path like /uploads/img1;/uploads/img2;/uploads/img3
)
I need to first obtain all the path in array and then pass this array to Gallary Widget to show images