Hello guys,
I’m a beginner here so I might say need to explore more but one thing is I just wanted to ask on how to embed the uploaded image in views.php. There is no widget installed just a plain showing of images from a url or in my server.
Thanks in advance and Godbless!
<img src="http://example.com/path/to/image.png" />
I would like to embed on this code below:
<?= DetailView::widget([
'model' => $model, 'attributes' => [ 'profile_pic'-><img src="path/to/image.png"/>, ],
]) ?>
If you want to output tags in DetailView, use "profile_pic:html".