Re: Shared Models in Different Modules
In my opinion, each Module should be self-contained. Let's look at
each module as a package. This allows you create new projects
via the well-known copy-paste technique! However, the default
module needs access to other models to collect the magnet content.
We can put "./application/modules" into the include_path.
But we cannot use the Zend_Loader to load models using the
following syntax: Zend_Loader('{modulename}_models_{ModelName}').
Because Zend_Loader checks for the class name to match via
the given parameter.
Perhaps we need a Zend_Loader::loadModel to load the required models
in each Action Controller, and of course, there could be a method, say,
setModuleModelDirectoryName().
-B