My mistake - I didn't read the error messages properly - I was still
var_dump
ingZend_Loader_Autoload
in the bootstrap which was causing a "headers already sent" exception. Remember to try without debugging output!
I have a modular application running on ZF 1.11.11 with this directory structure:
application/
Bootstrap.php
modules/
default/
controllers/
models/
views/
manager/
Bootstrap.php
controllers/
models/
forms/
views
layouts/
configs/
Relevant application.ini
declarations:
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = ""
Essentially my problem is that a controller in the manager module cannot load a form in the forms/
directory of the manager directory. var_dump
ing Zend_Loader_Autoloader::getInstance()
shows that all the Application_
maps are defined, (although to the wrong place, /application
rather than /default
) and no maps are defined for Manager_
.
What confuses me is that the Bootstrap.php in manager/
is loaded, which means that the module has been detected. This bootstrap simply extends Zend_Application_Module_Bootstrap
.
Is there some arcane configuration value I'm missing here? The documentation seems to be quite sparse on this (would also love some in-depth explanation on this).