Welcome Guest, Not a member yet? Register   Sign In
Running scripts via CLI
#1

(This post was last modified: 05-06-2015, 03:01 AM by Happy Camper.)

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!
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB