Welcome Guest, Not a member yet? Register   Sign In
Where is the environment constant defined
#1

[eluser]TheseAreTheFables[/eluser]
In the documentation, it is written that an ENVIRONMENT constant is defined at the top of index.php, however I guess it's outdated information since the constant it's not there (in CI 2.0) or anywhere else. In that case, is it ok to create this constant myself?

It's also written that this constant affects the core classes. Is it still the case? It doesn't seem like a good idea since I want to be able to give custom value to the environment and don't want the core to behave differently when I do so.

Could someone confirm how this is all working in CI 2.0?
#2

[eluser]bubbafoley[/eluser]
we're on 2.0.1 now. sounds like you might need to upgrade.

http://codeigniter.com/downloads/
#3

[eluser]Jaketoolson[/eluser]
My index.php has the environment constants...
#4

[eluser]TheseAreTheFables[/eluser]
Right, I didn't see a new version was out. Thanks, will take a look.
#5

[eluser]kirkaracha[/eluser]
The upgrade instructions say "Replace all files and directories in your 'system' folder and replace your index.php file."




Theme © iAndrew 2016 - Forum software by © MyBB