title: How can I have some namespaces available only in a development build?
body: <p>I am trying to setup my Zend Framework project with some development helper code. But I want the use of that code in our testing environment to throw errors (would also throw errors in production, but they should all be dealt with in testing).</p>
  
  <p>The strategy I'm looking at is putting all the development helper code in a particular namespace in Zend that isn't included in the Testing or Production builds.</p>
  
  <p>The namespace is <strong>Dev_</strong></p>
  
  <p>Here is how I'm trying to do this in the application.ini:</p>
  
  <pre><code>[production]
  phpSettings.display_startup_errors = 0
  phpSettings.display_errors = 0
  includePaths.library = APPLICATION_PATH "/../library"
  bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
  bootstrap.class = "Bootstrap"
  appnamespace = "Application"
  resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
  resources.frontController.params.displayExceptions = 0
  autoloaderNamespaces[] = "Events_"
  
  [staging : production]
  
  [testing : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  
  [development : production]
  phpSettings.display_startup_errors = 1
  phpSettings.display_errors = 1
  resources.frontController.params.displayExceptions = 1
  autoloaderNamespaces[] = "Dev_"
  </code></pre>
  
  <p>The problem is that like this, the application seems to ignore the "Events_" namespace.  I've tried removing <code>autoloaderNamespaces[] = "Dev_"</code> and it was then recognizing "Events_" again.</p>
  
  <p>My understanding is that I should be able to add any number of custom namespaces this way. How can I get this setup to ignore the <strong>Dev_</strong> namespace outside of Development builds?</p>