[eluser]mark-e-mark[/eluser]
I seem to be running into a little issue when I try to extend a core class.
The user guide suggests the following prototype to extend a core class:
Code:
class MY_CoreClass extends CI_CoreClass {
function My_CoreClass()
{
parent::CI_CoreClass();
}
}
.. where
CoreClass is obviously replaced with the class I am trying to extend.
However, CI chucks a fatal error
"Fatal error: Class 'CI_CoreClass' not found ....".
I
CAN, however, get my extensions to work if I drop the
CI_ prefix:
Code:
class MY_CoreClass extends CoreClass {
function My_CoreClass()
{
parent::CoreClass();
}
}
Is there something simple I'm doing wrong, or is there an error in the CI documentation?