Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7942197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:53:47+00:00 2026-06-03T23:53:47+00:00

I am trying to setup my Zend Framework project with some development helper code.

  • 0

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:

[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_"

The problem is that like this, the application seems to ignore the “Events_” namespace. I’ve tried removing autoloaderNamespaces[] = "Dev_" 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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:53:48+00:00Added an answer on June 3, 2026 at 11:53 pm

    I’d think it may be possible to do autoloaderNamespaces.events = "Events_ and it won’t be rewritten later. autoloaderNamespaces.dev = "Dev_" – the [] are just convenience IMO

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add some administration scripts to a Zend Framework project, that
In my Zend Framework project, I have a form that I am testing. In
I am trying to setup my php (Zend Framework) project through injection dependence .
I am trying to setup ext javascript grid within zend framework mvc. I included
I am trying to setup my linode account to serve a zend framework web
I'm trying to set up my zend framework application on this host but I'm
Trying to setup a CodeIgniter based project for local development (LAMP stack), and once
I am trying to learn about unit testing in Zend Framework. I have installed
I'm using some Zend libraries outside of the Zend Framework in a small project.
I am trying to setup the Zend Framework on a windows machine and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.