Oh snap! You are using an old version of browser. Update your browser to get new awesome features. Click for more details.

Magento: How to get list of all modules programmatically?


Here, I will show you how you can get list of all modules in your Magento installation. It’s a simple code.

Add this code in phtml file.

$config->getNode('modules');
foreach($config->getNode('modules')->children() as $item){
    echo $codePool     = $config->getModuleConfig($item->getName())->codePool;
    echo "   ";
    echo $name = $item->getName();
    echo "<br>";
}
exit;

$modulesname =  array_keys((array)Mage::getConfig()->getNode('modules')->children());
echo "<pre>";print_r($modulesname);exit;

Get current module name:

echo $this->getRequest()->getModuleName();exit;
:)






Here, I will show you how you can get list of all modules in your Magento installation. It’s a simple code. - See more at: http://blog.chapagain.com.np/magento-how-to-get-list-of-all-modules-programmatically/#sthash.LiP872Z1.dpuf

(0) comments