image-crud icon indicating copy to clipboard operation
image-crud copied to clipboard

not working in sub folders

Open atmonshi opened this issue 13 years ago • 6 comments

hi John ,

small issue . when I but the images_examples.php in a folder inside controllers its not working

so the path is : proFolder/subFolder/images_examples/example1

and I get the error : Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/proFolder/index.php/images_examples/example1/ajax_list

its seem he dose not recognized the sub folder !

I try that in pure image-crud and pure CI .and the same result .

I hope you can take a look at this

thank you

atmonshi avatar Jul 10 '12 20:07 atmonshi

just add the subfolder name in the lines 270-272 & 283-285 in libraries/image_crud.php

jorgepereiras avatar Jul 12 '12 16:07 jorgepereiras

@wa7eedem I will probably fix this issue to the first not beta release.

Thanks to mention it.

scoumbourdis avatar Aug 12 '12 10:08 scoumbourdis

The lines have changed since then. I just upgraded and had to redo this: look for the functions getState() and _get_delete_url() and change wherever you see $rsegments_array[x].

For example: site_url('admin/'.$rsegments_array[1].'/'.$rsegments_array[2].'/delete_file/'.$value);

tabacitu avatar Feb 11 '13 11:02 tabacitu

Hi, i have a similar issue here, i want to include the example2 function from controller to another controller.

Example Admin Controller Gallery Controller /controller/admin/gallery.php

View view/admin/gallery/example.php

I can list the existent uploded files, but i cannot delete or add new pictures. The response is 404 Not found, i cannot figure out more than this.

Any suggestion?

Thanks

arisdario avatar Jun 03 '13 09:06 arisdario

Pull request #21 contains a solution for this. I ran into the same issue.

itguy614 avatar Jun 21 '13 19:06 itguy614

Hi, so when Image CRUD will be working with controllers in subfolders (multilevel folders) ?

Thanks

scion4581 avatar Sep 18 '14 12:09 scion4581