[eluser]trope[/eluser]
...or is there a better way to do this?
Thank you.
Code:
$env = "localhost";
$config['environment'] = array(
"localhost" => array("base_url" => "http://localhost/ci/",
"index_page" => "index.php"
),
"production" => array("base_url" => "http://mysite.com",
"index_page" => "index.php"
)
);
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
*/
//$config['base_url'] = "http://localhost/ci/";
$config['base_url'] = $config['environment'][$env]['base_url'];