<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
// Assuming the process runs with APPLICATION_ENV=development
$env = $this->getRequest()->getEnv("APPLICATION_ENV", "production");
var_dump($env);
}
}
?>
The above example will output
something similar to: