On Mon, Feb 2, 2009 at 11:59 PM, howard chen <[email protected]> wrote:
> Hello,
>
> I have some questions related to the offical ZFW QuickStart Guide
> (http://framework.zend.com/docs/quickstart)
>
> 1. The tutorial encourage the use of "APPLICATION_ENVIRONMENT", but
> where should I define this variable? in index.php or bootstrap.php?
Afaik, bootstrap.php use a conditional define:
defined('APPLICATION_ENVIRONMENT') or define(...) // define to default env
in index.php, usually doesn't define any envinroment. But an use case
could be creating a dev.php that defines app env to 'development'
and index.php defines app env to 'production'.
You can search for some zend projects out there to see how they use
the bootstrap file. (e.g.: bugapp, pastebin, jotbug, etc)
Regards,
--
Rolando Espinoza La fuente
Pro Soft Resources Inc.
www.prosoftpeople.com