Show image in form


(Allison Carrillo) #1

Hello everyone, I hope you can help me.

I have a form in which I need to show an image; that is, each record has its own image and when it is to be updated it must show the previously inserted image.

I was testing with this:

<?= Html::img('uploads/'.$model->logo);?>

But it shows nothing …

Any idea how to do it?


(pistej) #2

Check if you have correct path to image or check page source (or error in browser console).