title: How can I access which environment is set in CodeIgniter?
body: <p>I am new to CodeIgniter. I have found that, in order to manage multiple environments, CodeIgniter uses the following function in index.php</p>
  
  <pre><code>define('ENVIRONMENT', 'development');
  </code></pre>
  
  <p>to define the environment.</p>
  
  <p>My question is, how can I get which environment set at index.php inside my controllers?</p>