Welcome Guest, Not a member yet? Register   Sign In
get_filenames() behavior
#5

I don't recall ever using the file helper mostly because it contains a bunch of code that, for the given job, was of no interest. So rather than including ~500 lines of code, I would grab just the function or two needed or write the code myself.

From CI v3 the url and form helpers were the only ones I ever used.

With regard to file listing, my need has almost always been to present the user with a file names list. Usually, in these cases, the paths are of no interest to the user. At the moment I cannot recall ever needing to show them subfolders or, for that matter, the associated paths. But it's not hard to see how the full path info would be very useful in other situations.

I'm not positive I understand what you mean when you say "it should return the relative path instead of just the filename". What does that look like?
Reply


Messages In This Thread
get_filenames() behavior - by MGatner - 03-27-2020, 05:46 PM
RE: get_filenames() behavior - by jreklund - 03-28-2020, 01:38 AM
RE: get_filenames() behavior - by John_Betong - 03-28-2020, 10:02 PM
RE: get_filenames() behavior - by MGatner - 03-29-2020, 06:28 AM
RE: get_filenames() behavior - by dave friend - 03-30-2020, 08:00 AM
RE: get_filenames() behavior - by MGatner - 03-30-2020, 08:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB