<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link [url=http://fuelphp.com]http://fuelphp.com[/url] */ $config = array( /** * base_url - The base URL of the application. * MUST contain a trailing slash (/) * * You can set this to a full or relative URL: * * 'base_url' => '/foo', * 'base_url' => 'http://foo.com/' * * Set this to null to have it automatically detected. */ 'base_url' => null, /** * index_file - The name of the main bootstrap file. * * Set this to false or remove if you using mod_rewrite. */ 'index_file' => false, /** * Your environment. Can be set to any of the following: * * Fuel::DEVELOPMENT * Fuel::TEST * Fuel::STAGE * Fuel::PRODUCTION */ 'environment' => Fuel::DEVELOPMENT, /* ... Rest of the array removed for brevity... */ ); // Switch Env depending on the HTTP Host. switch(strtolower($_SERVER['HTTP_HOST'])) { case 'local.dev': case 'www.local.dev': $config['environment'] = Fuel::DEVELOPMENT; break; case 'test.dev': case 'www.test.dev': $config['environment'] = Fuel::TEST; break; case 'stage.dev': case 'www.stage.dev': $config['environment'] = Fuel::STAGE; break; case 'production.dev': case 'www.production.dev': $config['environment'] = Fuel::PRODUCTION; break; default: $config['environment'] = Fuel::DEVELOPMENT; break; } return $config /* End of file config.php */
Frank Bardon wrote on Monday 25th of July 2011:Use SetEnv in your .htaccess file. And don't replace it on the server
SetEnv FUEL_ENV development
It looks like you're new here. If you want to get involved, click one of these buttons!