I have two tables with one-to-many relation,
This code will display the path not image. how to display image?
Try this.
[ 'attribute'=>'photo', 'value'=>$model->photo, 'format' => ['image',['width'=>'100','height'=>'100']], ],