Gone are the days of Magento 1, where you can easily get the base URL using Mage::getBaseUrl();
Being a Magento developer, you may require to get Magento 2 base URL.
However, you can use two methods to get base URL in Magento 2:
Using Magento Core method
Using Object Manager
You can checkout both the methods to get base URL in Magento 2 at: https://meetanshi.com/blog/get-magento-2-base-url/
No comments:
Write comments