⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Suresh Bhatol

Member Since 24 Jul 2013
Offline Last Active Aug 08 2013 06:21 AM
-----

#8594 Problem with image crud

Posted Suresh Bhatol on 24 July 2013 - 06:28 AM

function example4()
    {
        $image_crud = new image_CRUD();
 
        $image_crud->set_table('ws_example_4');
 
        $image_crud->set_primary_key_field('id');
        $image_crud->set_url_field('url');
        $image_crud->set_title_field('title');
        $target_path = 'assets/uploads/'; if(!is_dir($target_path)){mkdir($target_path);}
        $image_crud->set_ordering_field('priority')
        ->set_image_path($target_path);
 
        $output = $image_crud->render();
 
        $this->load->view("site-admin/index_crud", $output);
    }

Image upload not working.. i tired upload image but show Upload failed