I'm working with Magento 2 – beta.
But cannot find how to get the configuration values in the phtml files.
eg: I want to get my custom modules configuration values in Magento_Catalog/templates/product/list.phtml
file.
Anyone know how to do this?
configurationmagento2template
I'm working with Magento 2 – beta.
But cannot find how to get the configuration values in the phtml files.
eg: I want to get my custom modules configuration values in Magento_Catalog/templates/product/list.phtml
file.
Anyone know how to do this?
Best Answer
You can create a function for getting configuration values in your custom module's helper.
Then you can get the configuration values to call this function in any phtml files.