All Questions
3 questions
0
votes
2
answers
189
views
How to used same code in helper data in magento 2?
Here is my object manager code can any one guide me how can i used same code in my helper data
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customOptions = $objectManager
...
4
votes
2
answers
9k
views
Loading Helper in Controller
I have a module and I am trying to get my module config data ( from system.xml ) within my module controller. It works when I get it in a template file but not when I try to access it in the controler ...
10
votes
3
answers
5k
views
Magento 2: proper use of helpers
I'm starting to see more and more people declaring helpers classes in order to be able to use the following in the template files:
$this->helper('Path/To/Helper/Class')->customMethod();
This ...