Thanks Mon & Graham,

Yes, once I'd added the module-specific Bootstrap the resource autoloader worked. However, that's not how I understood the documentation.

The line: "By default, an instance of Zend_Application_Module_Autoloader will be created for the module, using the module name and directory to initialize it."

could be read (by me at least!) that module autoloading is a separate feature of Zend_Application_Resource_Modules. I thought, incorrectly obviously, that enabling the module resource would support the autoloader. But I see now, you have to enable the ini setting AND have a Bootstrap to use the module bootstrap resource.

What the documentation certainly doesn't say, and should, is that the module Bootstrap has to extend Zend_Application_Module_Bootstrap in order to make all this work.

If that is correct, I may suggest some alterations to the module resource docs to make this clearer (perhaps a small code example would help). Should I send that to this list / zf-docs / or just post an issue on JIRA?

best wishes,
Simon


I'm confused. Did it work or did it not work after creating a module
bootstrap? Because that's how it's supposed to work. The module autoloader
is registered by the bootstrap and not the modules resource plugin, so
simply activating the plugin is not enough. If it didn't work, maybe your bootstrap class name is wrong. The class name should be <Module>_Bootstrap and the file should be named Bootstrap.php and live in the module directory.


  -- Mon



Reply via email to