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 992511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:16:48+00:00 2026-05-16T06:16:48+00:00

Hi Zend framework guys, I have a question for you : There is production

  • 0

Hi Zend framework guys,

I have a question for you :

There is production , development , testing etc that we can set .

I assume we have 3 different db for these .

But I have a doubt how do we access the url for testers and developers ?

Do we need to pass as a GET value and set whether its development , or for testing ? Or is there any other way ?

http://localhost/ is the url and I am the developer who uses it, How do we give the url for testers ? I am not a server admin , so if you guys have some other techniques using the same code base ?

Or do I want to have 3 code base itself for testing , development , production etc . For production its OK 🙂 , but just an example .

The question was asked by some of my friends when I introduced them #ZF , but I was not sure whether I am right when passing it as a GET value and setting it .

ie like site/?version=dev or something like that 🙂 . If you have an answer I love to hear .

Edit :

I was looking for a way like @David Weinraub says “Are you saying you want to use a single virtual host, a single location, but be able to force the execution context into dev, testing, production mode? That’s kind of unusual.”

Answer by @Iznogood is also right . But I was looking for a way @David Weinraub says . So marking it as correct for its a kind of unusual.

Thank you guys for your helps.

  • 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-05-16T06:16:49+00:00Added an answer on May 16, 2026 at 6:16 am

    Are you saying you want to use a single virtual host, a single location, but be able to force the execution context into dev, testing, production mode? That’s kind of unusual.

    If not, that is, if you will deploy dev, testing, production to different servers and (which strikes me as the more common arrangement), I agree with @izogood: Issue your SetEnv directive either in .htaccess or upstream at the vhost level.

    Since many of my projects don’t have a formal “build process” – just a straight FTP upload, often to shared hosting; kind of basic, I know – I prefer to keep my .htaccess free of deployment-specific content. As a result, I tend to issue the SetEnv directive at the vhost level on my local dev machine, and then let the APP_ENVIRONMENT constant – defined in public/index.php – default to 'production'.

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

Sidebar

Related Questions

In Zend Framework in Response Class there are two different arrays for storing headers:
Zend framework: what is the significance of controller filenames that have init in them?
Guys Can you advise good data grid in zend framework expect the zdgrid. I
Zend Framework 2 + Doctrine 2 Refering to this question, I have a simple
Hey guys, I'm coming from a Zend Framework background, are there any auto form
In Zend Framework, it is possible to set indentation for headMeta(), headLink(), etc: <?=
In Zend Framework, Zend_Validate_StringLength has an encoding property that can be used to convert
Examining Zend Framework, I found that all setter methods (of those I’ve examined) return
The zend framework provides a php wrapper for the amazon S3 api that simplifies
I have a Zend Framework project using version 1.10.8 with Doctrine 1.2.4.I use Zend_Auth

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.