Pages

19 January 2016

Magento 2 call system configuration in phtml file

Magento 2

call system configuration in phtml file

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $scopeConfig = $objectManager->create('Magento\Framework\App\Config\ScopeConfigInterface'); $configTel = 'section/group/field';

echo $scopeConfig->getValue( $configAddress, \Magento\Store\Model\ScopeInterface::SCOPE_STORE );

No comments: