I’m working on a file manager and need a way to configure the modes in the admin control panel. I have a textarea for the setting and so far my plan is to have the user configure as shown:
PHP will preg_split the setting into appropriate arrays on line breaks and spaces. The first column is the textContent that will show in the mode selector, the second the mode value, the third a list of file extensions that will automatically set the mode.
But now I need to get the right mode file for each mode, so here’s my question: Will it always work to use the name in the object in the second column for the folder and file name? I’m planning on using RequireJS to get the dependent files
By the way, I know nothing about the various C languages so I’m not sure the second to last line would be correct, I show it only to illustrate the concept.