Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter CLI returns blank when utilizing a model
#5

Found the answer on that too.

The ENVIROMENT comes from an Apache variable, since I call the command from CLI it doesn't recognize the Apache environment variable hence it tries to connect to the production DB and get the records. He finds nothing and there is the problem.

If that is the case...
a. do you have any good idea how to pass through CLI that I am on a develoment environment?
b. why it didn't return any errors? (That is something that I do not care at the moment, just to be honest)
Reply


Messages In This Thread
RE: CodeIgniter CLI returns blank when utilizing a model - by maslas - 01-17-2020, 12:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB