Welcome Guest, Not a member yet? Register   Sign In
CI is ignoring what I sent the index page to
#5

[eluser]CroNiX[/eluser]
Yes CI has a built in way to have different environments just for that purpose. Set and use the ENVIRONMENT constant in index.php depending on what host or IP the application is on. (use $_SERVER array to detect and set ENVIRONMENT). Then you can do all of your settings based on that environment, like db settings, base_url, application folder, system folder, etc.

You can also load different config files based on the environment. Read this:
http://ellislab.com/codeigniter/user-gui...ments.html



Messages In This Thread
CI is ignoring what I sent the index page to - by El Forum - 05-21-2013, 05:10 PM
CI is ignoring what I sent the index page to - by El Forum - 05-21-2013, 05:47 PM
CI is ignoring what I sent the index page to - by El Forum - 05-22-2013, 03:51 AM
CI is ignoring what I sent the index page to - by El Forum - 05-22-2013, 05:33 AM
CI is ignoring what I sent the index page to - by El Forum - 05-22-2013, 11:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB