您的购物车内没有物品。
小计: US$ 0.00
18211562086
新海意公司
您的购物车内没有物品。
在Magento 1.x 中,我们用下面代码读取 `core_config_data` 中的值:
Mage::getStoreConfig('sections/groups/fields')
|
而在Magento 2.0 中,我们用下面方法读取 ‘core_config_data’ 的值:
publicfunction__construct(
\Magento\Framework\App\Config\ScopeConfigInterface$scopeConfig,
){
$this->_scopeConfig=$scopeConfig;
}
publicfunctionhelloWorld(){
$showTemplateHint= $this->_scopeConfig->getValue('dev/debug/template_hints',\Magento\Store\Model\ScopeInterface::SCOPE_STORE);
}
|
You must be logged in to post a comment.
click here to log in