View Single Post
  #2 (permalink)  
Old 04-15-2008, 05:11 AM
Piro's Avatar
Piro Piro is offline
Junior Member
 
Join Date: Apr 2008
Location: Holland
Posts: 8
Default

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.
Reply With Quote