Welcome Guest, Not a member yet? Register   Sign In
Problem with 2.0.1 environments
#1

[eluser]carvingCode[/eluser]
I set a project I'm working on to use the 2.0.1 'environment' switch. I replaced the project's 'system' dir with a new 2.0.1 'system' dir. The project's index file has the ENVIRONMENT constant defined and the error_reporting switch statement.

I created a dir inside the config dir named 'development'. Placed my project's 'config', 'database', 'routes', and 'constants' config files in the new 'development' dir and replaced those with config files from a fresh 'config' dir (from 2.0.1).

When I launch the project in the browser, I get the following PHP error:

Code:
Warning: require(application/config/constants.php) [function.require]: failed to open stream: No such file or directory in C:\wamp\www\_cogs\ci\system\core\CodeIgniter.php on line 56

Fatal error: require() [function.require]: Failed opening required 'application/config/constants.php' (include_path='.;C:\php5\pear') in C:\wamp\www\_cogs\ci\system\core\CodeIgniter.php on line 56

If I move the 'constants' file out into main 'config' dir, I get:

Code:
An Error Was Encountered

Unable to determine what should be displayed. A default route has not been specified in the routing file.

If I move 'routes' out into the main 'config' dir, the project loads correctly.

Question: Is this the intended behavior?

TIA


Messages In This Thread
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 11:51 AM
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 12:42 PM
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 12:45 PM
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 12:49 PM
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 12:53 PM
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 01:01 PM
Problem with 2.0.1 environments - by El Forum - 03-17-2011, 02:56 PM
Problem with 2.0.1 environments - by El Forum - 03-25-2011, 06:43 AM
Problem with 2.0.1 environments - by El Forum - 03-25-2011, 02:51 PM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 04:21 AM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 08:16 AM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 09:36 AM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 02:47 PM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 03:54 PM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 05:34 PM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 05:44 PM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 05:50 PM
Problem with 2.0.1 environments - by El Forum - 03-29-2011, 07:52 PM
Problem with 2.0.1 environments - by El Forum - 03-31-2011, 04:45 PM
Problem with 2.0.1 environments - by El Forum - 04-11-2011, 03:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB