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


Messages In This Thread
MY_Controller in CI 2.0 ... - by El Forum - 08-18-2010, 09:30 AM
MY_Controller in CI 2.0 ... - by El Forum - 08-18-2010, 09:45 AM
MY_Controller in CI 2.0 ... - by El Forum - 08-18-2010, 09:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB