In .htaccess:

SetEnv APPLICATION_ENV development

In php (from ZF’s bootstrapped setup): // Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));