Answer the question
In order to leave comments, you need to log in
How to display a photo from a link saved in the database?
I'm trying to get an image in a view in the following way:
echo Html::img($model->image, ['class'=>'img-responsive']);
Answer the question
In order to leave comments, you need to log in
Try making the path absolute:
echo Html::img('/' . $model->image, ['class'=>'img-responsive']);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question