Skip to content

Instantly share code, notes, and snippets.

@JOakley77
Created May 3, 2012 19:37
Show Gist options
  • Select an option

  • Save JOakley77/2588649 to your computer and use it in GitHub Desktop.

Select an option

Save JOakley77/2588649 to your computer and use it in GitHub Desktop.
CI index.php - set ENVIRONMENT by host
<?php
switch($_SERVER['SERVER_NAME']) {
case 'magicisp.local';
error_reporting(E_ALL);
define('ENVIRONMENT', 'development');
break;
default:
error_reporting(0);
define('ENVIRONMENT', 'development');
break;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment