Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get base url in magento 2

$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$storeManager = $objectManager->get('MagentoStoreModelStoreManagerInterface');
$storeManager->getStore()->getBaseUrl();
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #base #url #magento
ADD COMMENT
Topic
Name
1+2 =