2010-09-24, 19:03:36
Hello.
I'm writing a plugin myself, and as it would also include a bit of AJAX I'm trying to fit all the functions and checks in one single file.
Which is bad, in my opinion, it's starting to get messy.
My question is: should I provide myplugin.php with a "myplugin" folder, the first then requiring the proper scripts in "myplugin"?
I ask because I thought of a much cleaner solution, but it needs a modification of "admin/inc/plugin_functions.php":
I'm writing a plugin myself, and as it would also include a bit of AJAX I'm trying to fit all the functions and checks in one single file.
Which is bad, in my opinion, it's starting to get messy.
My question is: should I provide myplugin.php with a "myplugin" folder, the first then requiring the proper scripts in "myplugin"?
I ask because I thought of a much cleaner solution, but it needs a modification of "admin/inc/plugin_functions.php":
- Check plugin files in GSPLUGINPATH, ending in php (as it is now)
- Check also for folders with a file "plugin.php" or "$(folder name).php" in them (proposed solution)
- Include the found php file
./tankmiche_