I'm a french student and I'm actually trying to learn how to use Magento 2 i have a little difficulty to display the version of my module in my view could someone explain me briefly please.
Solved! Go to Solution.
please check below code:-
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $moduleInfo = $objectManager->get('Magento\Framework\Module\ModuleList')->getOne('SR_Learning'); // SR_Learning is module name echo "<pre>"; print_r($moduleInfo);
If works then mark as solution.