[eluser]Phil Sturgeon[/eluser]
This isnt the first time I have extended a CI lib, but its the first time it has given me so much crap for trying.
Im trying to make a simple add-on for image lib to allow file format convertions. Simple enough but when i make MY_Image_lib with the code:
Code:
class MY_Image_lib extends CI_Image_lib {
function convert($new_format = 'jpg')
{
// unimportant and untested code
}
}
// END Image_lib Class
?>
I get the error:
Quote:Fatal error: Class my_image_lib: Cannot inherit from undefined class ci_image_lib in /home/kicknote/public_html/beta/application/libraries/MY_Image_lib.php