0

I followed the guide on how to disable it but the reverse does not work:

Mage::getConfig()->setNode($nodePath, 'true', true);

I guess extensions are already loaded at that point?

1 Answer 1

1

Modules are loaded during bootstrap, in Mage_Core_Model_App::loadModulesConfiguration(). If the path of config/modules/Module_Name/active is set to true at this point, then the modules etc/config.xml file is loaded and the config contained within is merged in to the config structure in memory, so to disable the module you'd have to either set active to false before this point (which would require a core change, as no event is dispatched prior to this point which would allow you to do so), or remove all the elements from the config that the modules config files contained before the module is used (which would be a bit of a challenge, so I'd not advise it).

1
  • That work after I disabled caching. Thanks Mar 4, 2015 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.