I'm new to CodeIgniter and poor php (sorry for my English I'm Italian :) ....).
I have a problem that I can not solve. I would like to iterate the contents of folders and subfolders and insert into databases with a table and 2 columns (folder_name 'or subfolder' and file_name). I wanted to use the directory_map function ('./mydirectory/'); but I have serious problems in understanding how to iterate the multidimensional array and insert information on DB MySQL
(... sorry).
Can someone help me to solve this problem by writing an example how to make the controller and the model?
Every help will be appreciated. Thanks so much