Show images in views

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' =&gt; &#036;model,


    'attributes' =&gt; [


        'profile_pic'-&gt;&lt;img src=&quot;path/to/image.png&quot;/&gt;,


        


    ],

]) ?>

If you want to output tags in DetailView, use "profile_pic:html".