Hi Arthur,
I probably would not call it the "Zend way," but since I'm a Zender,
I'll share how I have done autoloading model classes using Zend_Loader:
My "bootstrap" class sets up the include_path:
set_include_path($this->getPath('library') . PATH_SEPARATOR .
get_include_path());
The class also has a _setupAutoloader() method that runs:
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload();
This makes subsequent loading of model classes within the include_path a
piece of cake:
new My_Model_User($identity);
// loads application/library/My/Model/User.php automatically
Hope this helps!
Best regards,
Darby
Arthur M. Kang wrote:
> What, if any, is the Zend way of autoloading models in the form of
> modules/modulename/models/modelname.php ? Can the Zend_Loader be used
> to accomplish this and how?
>
> Arthur