Using codeigniter database class separately

#1
[eluser]pilotdev[/eluser]
Hi there,

I've written a couple scripts that I want to run from cron or from command line that take advantage of CI libraries and potentially models.

I've built a library class and put it in my application folder. It currently only uses the database class with configuration settings in my app/config/database.php file. I'd like to be able to use the $this->db call to reference the class so that I can use the same class in my bootstrapped page serving classes.

Basically I want to use the CI framework for my command-line scripts but also using that same logic to serve pages.

If this doesn't make sense, I can give an example.

Thanks!

Dave


Messages In This Thread
Using codeigniter database class separately - by El Forum - 02-01-2010, 07:33 PM
Using codeigniter database class separately - by El Forum - 02-01-2010, 09:47 PM
Using codeigniter database class separately - by El Forum - 02-01-2010, 10:49 PM
Using codeigniter database class separately - by El Forum - 02-02-2010, 01:16 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.