Reply to Re: class.upload with code Igniter? How to do?

Re: class.upload with code Igniter? How to do? new!
by colin, 16 years, 7 months ago
I think you will have to create a wrapper class for the upload class. You would use it like this:

$foo = $this->load->library('someclass');
$this->someclass->init($_FILES['form_field']);
$this->someclass->image_resize(true);
etc.... It is one way to do it, but you can pass all the parameters in a different fashion.

Your library will then wrap the class.upload, and within the library, you will instantiate the upload class, set the parameters, etc...

I don't have the time to try, but that gives you an idea.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important