I’m trying to use the CodeIgniter DB functionality (as it’s DB(...) function, defined in database/DB.php) as a stand-alone library.
What would be the minimal environment needed to make this run?
So far I’ve got:
APPPATH,BASEPATHandENVIRONMENTconfig/config.phpcore/Common.phpcore/Exceptions.phpcore/Lang.phplibraries/Log.php- all files in
database/*
But the code still seems to mysteriously die.
You may find the following link helpful.
http://hasin.me/2007/06/13/using-activerecord-library-separately-from-codeigniter/