Option 1:
I'm using the Zend_Loader::registerAutoloader() method and extending the include_path in the bootstrap file by scanning the module or controller directories for the folder 'models'. When it encounters one, it adds it to the include_path.
This way I can use '$nodes = new Nodes();' in my projects to load a model without any hassle.
|