title: Zend Module Bootstrap does not load
body: <p>I have a very strange case where my Module is working but my Module's boostrap is not being loaded.</p>
  
  <p>Here is the segment in my application.ini for module autoloading:</p>
  
  <pre><code>resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
  resources.modules[] = ""
  </code></pre>
  
  <p>Here is the bootstrapper:</p>
  
  <pre><code>protected function _initAutoload()
      {
          $autoloader = new Zend_Application_Module_Autoloader(array(
              'namespace' =&gt; 'User_',
              'basePath'  =&gt; APPLICATION_PATH .'/modules/user',
              'resourceTypes' =&gt; array (
              'model' =&gt; array(
                  'path' =&gt; 'models',
                  'namespace' =&gt; 'Model',
                  )
              )
          ));
      }
  </code></pre>
  
  <p>Structure of my modules</p>
  
  <pre><code>Application
  --modules
  ----user
  ------config/
  ------controllers/
  ------models/
  ------views/
  ------Bootstrap.php
  ----admin
  </code></pre>
  
  <p>The problem here is that User_Bootstrap is not being loaded.</p>
  
  <pre><code>&lt;?php
  
  class User_Bootstrap extends Zend_Application_Module_Bootstrap
  {
  
      protected function _initAutoload()
      {
          Zend_Registry::set('debug', 'haha');
      }
  }
  </code></pre>
  
  <p>By doing a Zend_Registry::get('debug') on any controller, it doesn't recognize that the key was set in the module bootstrap. In fact any syntax error in the User_Bootstrap does not work.</p>
  
  <p>I don't know why User_Bootstrap is not being autoloaded. This is driving me crazy because I've been researching for 5 hours and can't even get a blog post close to covering this case...</p>
  
  <p>Speaking of which, my models and controller classes are being autoloaded fine.</p>