Hello. Trying to use CostaRico yii2-images . It has a "name" field in the database, in the settings of yii2-images this field is by default empty.
You can specify the name in the model
$model->attachImage('../../image2.png', true, myname); // myname - имя I get the main image like this:
<?= Html::img($model->getImage()->getUrl())?> I get all the images like this:
$images = $model->getImages(); foreach($images as $img){ <?= Html::img($img->getUrl())?>` } Tell me how to get me an image whose name = "myname"?