Hi there,
why my image is not shown?
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'name',
'phone',
'email:email',
//'img_name:image',
[
'attribute' => 'img_name',
'format' => 'html',
'label' => 'Studnt image',
'value' => function ($model) {
return Html::img( $model['img_name'],
['width' => '60px']);
},
],
],
]) ?>