Welcome Guest, Not a member yet? Register   Sign In
[Resolved] Image Lib extention error
#1

[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
#2

[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!




Theme © iAndrew 2016 - Forum software by © MyBB