Posted on Dec 17, 2018
View Magento's sorted module tree
Tuesday, September 11, 2012

Here is an easy way to view Magento's module tree after dependency sorting has been applied.
- # File: app/code/core/Mage/Core/Model/Config.php
- # Method: _loadDeclaredModules()
- # Line: around 830
- foreach($moduleDependsas$moduleProp){
- $node=$unsortedConfig->getNode('modules/'.$moduleProp['module']);
- $sortedConfig->getNode('modules')->appendChild($node);
- }
- // Add these lines to output the sorted config as an array
- die;
- $this->extend($sortedConfig);
View Magento's sorted module tree
View Magento's sorted module tree
Tuesday, September 11, 2012

Here is an easy way to view Magento's module tree after dependency sorting has been applied.
- # File: app/code/core/Mage/Core/Model/Config.php
- # Method: _loadDeclaredModules()
- # Line: around 830
- foreach($moduleDependsas$moduleProp){
- $node=$unsortedConfig->getNode('modules/'.$moduleProp['module']);
- $sortedConfig->getNode('modules')->appendChild($node);
- }
- // Add these lines to output the sorted config as an array
- die;
- $this->extend($sortedConfig);