Welcome Guest, Not a member yet? Register   Sign In
Why vars to constants in index.php?
#1

[eluser]JCianflone[/eluser]
Hey everyone,

So, I've had some time to tinker with my install of codeigniter and I was looking for ways to optimize my own install and I was wondering about the index.php file. We've got a whole bunch of variables that just get loaded into constants down below (I know there is more going on, in some cases just bare with me). I'm really just wondering why it's done this way. Since there is no computation going on in these variables, constants should be faster to use. Just take as an example the $system_path or the $application_folder. Am I missing something here? Is there a reason these are variables?

Thanks!


Messages In This Thread
Why vars to constants in index.php? - by El Forum - 01-27-2011, 04:49 PM
Why vars to constants in index.php? - by El Forum - 01-27-2011, 04:55 PM
Why vars to constants in index.php? - by El Forum - 01-27-2011, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB