My Zend Framework project is divided into specific modules. Each module has specific controller plugins.
Now the problem is that all plugins are loaded and registered (and therefore called) - regardless of which module the user is trying to access.
I could check which module we are in and stop executing directly in the plugins, but I would have to do this in each plugin ...
Is there an elegant way to register only module-specific plugins? Or am I trying to solve the wrong problem here?
source share