Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Command-Line w/ Environment Configs
#1

[eluser]jakelehner[/eluser]
Does anyone have a good method for using CI in command-line while maintaining dynamic environment detection?

I modify the index.php to switch the environment type based on the HTTP_HOST. Obviously, in command line this value doesn't get set so I can't use that.

I've tried a few other options with little luck. I can pass the environment type in as a parameter, but that's kind of sloppy and requires me to then fill in every parameter for a given method (even optional ones).

Any ideas?


Messages In This Thread
Codeigniter Command-Line w/ Environment Configs - by El Forum - 07-05-2012, 07:22 PM
Codeigniter Command-Line w/ Environment Configs - by El Forum - 07-05-2012, 11:40 PM
Codeigniter Command-Line w/ Environment Configs - by El Forum - 07-06-2012, 07:17 AM
Codeigniter Command-Line w/ Environment Configs - by El Forum - 10-05-2013, 03:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB