I have my config defined via Zend_Config_Ini adapter, with production, development and testing sections. In my controller I would like to take certain actions depending on what environment/section I am currently using - e.g. I only want to send email in production and testing, not in development.
Is there a way to determine which environment/section I am using the controller? I can set a value in the config and grab that in the controllers, but seems like there would be a cleaner way to determine.