How to use “img” tag in a “phtml” file?
-
12-12-2019 - |
Question
I'm trying to display an image from a phtml file. The following doesn't work.
<?php <img src="<?php echo $adress ;?>" /> ?>
Could you help me ?
Solution
Loose the php tags around the img
tag.
Use simply this:
<img src="<?php echo $adress ;?>" />
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange