Reputation: 106609
I'd like to have something like a
webmasterEmail = [email protected]
where the ErrorController sends an email if the application is running in production mode. Is it possible to just tack this on to Zend_Application's .ini
file and retrieve the values in a controller later?
Upvotes: 1
Views: 118
Reputation: 165058
All too easy :)
// return all options as an array
$options = $this->getInvokeArg('bootstrap')->getOptions();
// or, specifically
$webmasterEmail = $this->getInvokeArg('bootstrap')
->getOption('webmasterEmail');
Upvotes: 5