Welcome Guest, Not a member yet? Register   Sign In
MY_Controller problems.
#1

[eluser]Unknown[/eluser]
Hello,

I was searching on forums, but don't have any idea what is wrong, I'm more than sure I did everything ok, but when try to extend MY_Controller I got error that class is not found.

Here's how it looks like.

/application/libraries/MY_Controller.php:
Code:
<?php if (!defined('BASEPATH')) exit('No direct access allowed.');

class MY_Controller extends Controller
{
    function __construct()
    {
        parent::__construct();
    }
}

/application/controllers/welcome.php:
Code:
class Welcome extends MY_Controller  {

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

Result? Fatal error: Class 'MY_Controller' not found in welcome.php, line 3.

I'm on PHP5. Have no idea what it's not working. Any tips?

Regards


Messages In This Thread
MY_Controller problems. - by El Forum - 03-16-2010, 06:36 AM
MY_Controller problems. - by El Forum - 03-16-2010, 07:25 AM
MY_Controller problems. - by El Forum - 03-16-2010, 07:30 AM
MY_Controller problems. - by El Forum - 03-16-2010, 07:39 AM
MY_Controller problems. - by El Forum - 03-16-2010, 08:02 AM
MY_Controller problems. - by El Forum - 03-16-2010, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB