On 04/05/2011 09:21, Mark Harris wrote:
Hi Simon,

Is there a way to completely disable a module? Would generating 404 from the module's bootstrap be
sufficient? How about the autoloader? Is there a way to stop that?

You can remove the module from your resources.modules listing so the controllers for that module are not registered. The front controller should throw a 404 for those modules/controllers that are not registered:

https://github.com/markizano/markizano/blob/master/application/configs/application.ini#L121


That's a "manual" way to do it. I need to be able to do this via PHP. I have this in my application.ini:

resources.modules = ""

Which effectively loads all the existing modules. I need to be able to do some tests and then if the requirements are not met, disable the module so that it cannot be used.

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to