I have a system using CakePHP, in one of the pages there is the possibility of registering folders and recursive files, which are saved in the database. Now, I need to query these folders and files, logically with recursion and reproduce something like this:
But I'm having a hard time getting this data from the database. The recursive folders are being retrieved correctly through the CakePHP 'Tree' class, but the files that are saved in another table do not. Can anyone help me? (If necessary I make available the code I am using). Thank you!