Skip to content

Instantly share code, notes, and snippets.

@evgv
Last active July 12, 2016 08:46
Show Gist options
  • Save evgv/f327d64c7d1e06c24608cd2c9fe216eb to your computer and use it in GitHub Desktop.
Save evgv/f327d64c7d1e06c24608cd2c9fe216eb to your computer and use it in GitHub Desktop.
Magento. Disable all Local Modules.

While going through the study guide for the Magento Developer Exam, I’ve been learning a few interesting details that are squirreled away in the Magento code, but can be useful in day to day Magento development.

For example, while going through the section on Module loading, it is revealed that we can easily disable all modules living in the local (app/code/local) namespace by editing app/etc/local.xml and setting the disable_local_modules node to true:

<config>
    <global>
        ...
        <disable_local_modules>true</disable_local_modules>
        ...
    </global>
    ...
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment