How can I have some namespaces available only in a development build?

hessbbq

New Member
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).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.The namespace is Dev_Here is how I'm trying to do this in the application.ini:\[code\][production]phpSettings.display_startup_errors = 0phpSettings.display_errors = 0includePaths.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 = 0autoloaderNamespaces[] = "Events_"[staging : production][testing : production]phpSettings.display_startup_errors = 1phpSettings.display_errors = 1[development : production]phpSettings.display_startup_errors = 1phpSettings.display_errors = 1resources.frontController.params.displayExceptions = 1autoloaderNamespaces[] = "Dev_"\[/code\]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.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 Dev_ namespace outside of Development builds?
 
Back
Top