CodeIgniter Forums
[Resolved] Image Lib extention error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [Resolved] Image Lib extention error (/showthread.php?tid=4066)



[Resolved] Image Lib extention error - El Forum - 11-05-2007

[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



[Resolved] Image Lib extention error - El Forum - 11-05-2007

[eluser]Phil Sturgeon[/eluser]
Resolved, the second I clicked submit a IM window pops up telling me there was no image_lib in system lib folder, doh!