Welcome Guest, Not a member yet? Register   Sign In
MY_Controller in CI 2.0 ...
#1

[eluser]Met[/eluser]
hi

i keep getting

Code:
Fatal error: Class 'MY_Controller' not found in C:\xampp\htdocs\project\application\controllers\site.php on line 3

I have:

in /application/libraries- saved as "MY_Controller.php"

Code:
<?php

class MY_Controller extends Controller {

    function __construct()
    {
        parent::Controller();

    }

}

and my controller:

Code:
<?php

class Site extends MY_Controller {

    function __construct()
    {
        parent::MY_Controller();
    }

    function index()
    {
        echo 'working..';
    }
}

what am i missing?

thanks
#2

[eluser]danmontgomery[/eluser]
extended core classes belong in core/ in 2.0, not in libraries/
#3

[eluser]Met[/eluser]
that might just explain it Tongue

thanks!




Theme © iAndrew 2016 - Forum software by © MyBB