zend-frameworkzend-framework2zend-framework-modules

How Disable a specific module on Zend Framework 2 dynamically


How to disable a specific module in ZF2 using a database I have a list of modules in the configuration file thinking that at some point in my application, read a table with the names of modules and disables them that are flaged as disabled in the database

in my case I am using Doctrine2 as my database


Solution

  • The lazy-loading module manager from Vincent Blanchon may be a solution to your problem. It allows to conditionnally enable or disable modules.

    https://github.com/blanchonvincent/zf2-lazy-loading-module