Yii2 Render an image in DetailView

[
 'attribute'=>'group_pic',
'value'=>('uploads/group_pro_pic/' . $model->group_pic),
'format' => ['image',['width'=>'230','height'=>'200']],
            ]

Try this:

[
    'attribute'=>'photo',
    'value'=>$model->photo,
    'format' => ['image',['width'=>'100','height'=>'100']],
],

 DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'photo:image',
        ],
    ])

Try this:

[
   'attribute'=>'images',
   'value'=> Yii::$app->homeUrl.'uploads/'.$model->images,
   'format' => ['image',['width'=>'100','height'=>'100']],
],

Tags:

Yii2