... in my phtml view
I want to add a image in my view.
Somebody know how to do it ?
Thanks for help..
... in my phtml view
I want to add a image in my view.
Somebody know how to do it ?
Thanks for help..
I hope you ask how to show image in phtml
If you call image from theme
<img src="<?php echo $this->getViewFileUrl('img/image.jpg'); ?>" />
image location should be
app/design/frontend/Vendor/theme/web/img/image.jpg
If you call image from module
<img src="<?php echo $this->getViewFileUrl('Vendor_Module::img/image.jpg'); ?>" />
image location should be
app/code/Vendor/Module/view/frontend/web/img/image.jpg
phtml viewmisslead me I thought it was for product images. My bad. – Matthéo Geoffray Feb 08 '17 at 15:07