Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.60 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class Generator_Bootstrap extends Zend_Application_Module_Bootstrap
  2. {
  3.  
  4.     protected function _initAutoload()
  5.     {
  6.         $autoloader = new Zend_Application_Module_Autoloader(array(
  7.             'namespace' => 'Generator_',
  8.             'basePath'  => APPLICATION_PATH . '/modules/generator',
  9.         ));
  10.        
  11.         /**
  12.          *  add Api, should be there by default but that's not the case
  13.          *  @see http://framework.zend.com/manual/en/zend.loader.autoloader-resource.html#zend.loader.autoloader-resource.module
  14.          */
  15.         $autoloader->addResourceType('api','api/','Api');    
  16.     }
  17. }