How to view image on a view
Created 6 years ago by dilusha100My module has image and I need to show it in the index page. basically I tried to use {{ package.image.make.class("card-img-top").fit(300,300) | raw }}
it doesn't show anything ( there is no error also). First I though this is a problem with users permission on his role but then I realize that even admin can't see the images.
So, I'm I in correct path or is there any better way to do this?
dilusha100
—
6 years ago
Best Answer
Thank you for your support. But it's not worked for me. but I found this as solution <img src="/files/images/{{ package.image.name}}" alt="">
Thank you for your support. But it's not worked for me. but I found this as solution
<img src="/files/images/{{ package.image.name}}" alt="">