[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