[eluser]Rui Lima[/eluser]
Hello,
I'm trying to extend CI_Model, but am unable to do it.
Code:
class MY_Model extends CI_Model{
public function MY_Model(){
$this->__construct();
}
public function __construct(){
parent::CI_Model();
}
}
then when it gives me error:
Quote:Fatal error: Class 'MY_Model' not found in
Code:
class User_Model extends MY_Model{ //<--- can't fund MY_Model
public function User_Model(){
$this->__construct();
}
public function __construct(){
parent::MY_Model();
$em = $this->doctrine->em;
$this->load->library('encrypt');
}
}
Any ideas? (this is CodeIgniter 2.0, i was able to do this with 1.7)