I searched for solutions , but all answers i found was outdated and don't helped me. So , there is my problem.
I'm trying to extend CI_Model core model class. I'm following the oficial guide
But it's not working.
Below is how i'm doing it:
Path/Filename of my class i want to create:
application/core/MY_Model.php
The content of MY_Model.php
class MY_Model extends CI_Model {
public function __construct()
{
parent::__construct();
}
}
And, this is how i'm trying to load it at my model file:
class Setor extends MY_Model { ....
The error message i'm getting:
Class 'MY_Model' not found in C:\wamp\www\agenda\application\models\Setor.php
I'm using Windows 10, php 5.5.12, CodeIgniter 3.0.6