Class: db

Database handling sucks - not with this class :)

Configure your database connection like this:

c::set('db.host', 'localhost');
c::set('db.user', 'root');
c::set('db.password', '');
c::set('db.name', 'mydb');
c::set('db.prefix', '');

Methods