In Magento 1, we can directly get the image url using Mage::getUrl() function.
But in Magento 2 there are some changes to call the images
Use this code to phtml file to get the Url
1 |
<?php echo $block->getUrl('call/index/view') ?> |
Here:
call:- Module frontname
index:- Controller name
view:- Action name
Now Refresh the page and check