frogsystem / fs2core

This is the official repository for Frogsystem 2 development.
http://www.frogsystem.de
2 stars 3 forks source link

Code separation in Admin-CP-Files #134

Open Lukas-Kullmann opened 9 years ago

Lukas-Kullmann commented 9 years ago

Now there are lots of files in the admin-cp-folder containing all kinds of actions (e.g. listing, deleting, editing (saving and displaying) of articles is in one file). For clarity-reasons these functions should be separated into multiple files. Furthermore it would be nice if there was some kind of view-file so that logic and display of information is not mixed which would make the code more maintainable. Of course it would be best if there was the possibility to store all the code for one topic (including frontend and backend code of news, articles, downloads, etc.) in one folder. So that you don't have to search for code all over the project. But changing this would really be a long-term-project.

mrgrain commented 9 years ago

AdminCP uses templates to separate view and logic. But unfortunately only for a couple of modules at the moment. See https://github.com/mrgrain/Frogsystem-2/tree/master/www/admin/templates

mrgrain commented 9 years ago

A system to create admin pages via files only located a plugin located in lib// is yet to be done. But high priority.