In Magento 1, its very easy just use code: Mage::getBaseUrl();

But in Magento 2 There are 2 ways to get Base Url.

  1. Object Manages
  2. Magento Core Method

Object Manages

Magento Core Method


Sorry! No related Post.

Leave a Reply

Your email address will not be published. Required fields are marked *