CodeIgniter index.php Application Environment Declaration
Copy this code and paste it in your HTML
if ($_SERVER['HTTP_HOST'] == 'localhost:8888') {
define('ENVIRONMENT', 'development'); } else {
define('ENVIRONMENT', 'production'); }
Report this snippet
Comments
Subscribe to comments