[eluser]igul222[/eluser]
Hello everyone.
One of the models in an app I'm making looks something like this:
Code:
class My_model extends Model {
function My_model() {
parent::Model();
}
function delete($id) {
$this->db->delete('mytable', array('id' => $id));
}
What I don't understand is... it works. From what I've read on the documentation, you need to call:
Code:
$this->load->database();
before performing any database operations with CI.
My autoload.php does not auto-load the database, so why is this happening?