I’m pretty new to CodeIgniter and php. I have this issue which I can’t figure out.
I am trying to start working on a CodeIgniter php site and I keep getting: Class 'DB' not found
I have an error on line 92 this is the line
try {
DB::connect(DB_ADAPTER, array(
'host' => DB_HOST,
'user' => DB_USER,
'pass' => DB_PASS,
'name' => DB_NAME,
'persist' => DB_PERSIST
)); // connect
if (defined('DB_CHARSET') && trim(DB_CHARSET)) {
DB::execute("SET NAMES ?", DB_CHARSET);
} // if
DB::execute('ROLLBACK');
DB::execute('UNLOCK TABLES');
DB::execute('SET AUTOCOMMIT=1');
} catch(Exception $e) {
if (Env::isDebugging()) {
Env::dumpError($e);
} else {
Logger::log($e, Logger::FATAL);
Env::executeAction('error', 'db_connect');
} // if
} // try