image-crud
image-crud copied to clipboard
not working in sub folders
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
just add the subfolder name in the lines 270-272 & 283-285 in libraries/image_crud.php
@wa7eedem I will probably fix this issue to the first not beta release.
Thanks to mention it.
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);
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
Pull request #21 contains a solution for this. I ran into the same issue.
Hi, so when Image CRUD will be working with controllers in subfolders (multilevel folders) ?
Thanks