[eluser]Unknown[/eluser]
I'm trying to upload image in Codeigniter 2.0 HMVC
The code used to work without HMVC but now does not work.
I have tried to get a CI instance but does not work either.
How do you load libraries in Codeignter HMVC?
// IMAGE UPLOADING CODE
//Create the config for upload library
$config['upload_path'] = './media/property_images/'; //NB! create this dir!
$config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['encrypt_name'] = true; //Encryt the name
// Load the upload library
$this->obj = & get_instance();
$this->obj->load->library('upload', $config);