[eluser]richzilla[/eluser]
hi all,
ive poked around the user guide and the forums for an answer to this but i cant seem to find it. Im trying to extend the default controller class in CI 2:
So far, i have in application controllers:
Code:
<?php
/**
* Controller for app home page
*/
class Home extends MY_Controller {
function __construct()
{
parent::MY_Controller();
}
function index()
{
$this->load->view('memo_home.php');
}
}
/* End of file welcome.php */
/* Location: ./application/controllers/home.php *
and in application/core in a file call MY_Controller.php:
Code:
<?php
class MY_Controller extends Controller{
function __construct()
{
parent::Controller();
echo "Parent has been called";
}
}
?>
yet when i run the system i get an error:
Code:
Class 'MY_Controller' not found
ive checked my config file and the prefix is set to "MY_" and all of the file names are correct. Can anybody help me out?