ZF-9117: Missing reference to APPLICATION_ENV in quickstart tutorial

Issue Type: Docs: Problem Created: 2010-02-08T05:23:32.000+0000 Last Updated: 2010-02-08T13:54:27.000+0000 Status: Resolved Fix version(s): - 1.10.1 (10/Feb/10)

Reporter: fisharebest (fisharebest) Assignee: Matthew Weier O'Phinney (matthew) Tags: Related issues: Attachments:



This page ends with the sentence "Be sure to run the script for the environment you choose for your application when deploying."

However, there was no previous instruction to choose an environment. There is no mention of the APPLICATION_ENV constant, nor the fact that it corresponds to the sections in application.ini.

The quickstart application (ZendFrameworkQuickstart-20100203) contains the development database (.../data/db/guestbook-dev.db), but does not contain the production database (.../data/db/guestbook.db)

This means that unless you know that you have to set an undocumented constant to an undocumented value, you will run as the "production" environment. This will fail, as no production database is present.

  1. The documentation should explain the purpose of APPLICATION_ENV, and describe where it should be set.

  2. The quickstart application should contain sqlite databases for all the application environments defined in application.ini


Posted by Matthew Weier O'Phinney (matthew) on 2010-02-08T13:54:25.000+0000

Added instructions on setting up an Apache vhost (in trunk and 1.10 release branch); also updated the quickstart download files to include each of production, testing, and development sqlite database files. These changes will post on the site with 1.10.1.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.