Running scripts via CLI |
Hello
When i follow the documentation regarding running CLI scripts everything works fine http://www.codeigniter.com/user_guide/ge...hlight=cli However when i autoload the database library I get a database error (see attachment) The database login details are correct because the rest of the app works fine A partial workaround is to not autoload the database library and to load in in the constructor of each individual controller. But what happens if the controller function being run on CLI needs to access the database?? Thanks in advance for any help! |
Messages In This Thread |
Running scripts via CLI - by Happy Camper - 05-05-2015, 11:33 AM
RE: Running scripts via CLI - by kilishan - 05-05-2015, 11:41 AM
RE: Running scripts via CLI - by Happy Camper - 05-05-2015, 12:57 PM
RE: Running scripts via CLI - by CroNiX - 05-05-2015, 01:05 PM
RE: Running scripts via CLI - by Happy Camper - 05-06-2015, 03:34 AM
|