moinmoin from kiel.
Here is another silly question from a newbie
I’m creating an intranet-app and I need to access a database. After having read the posts about controllers and models I have come to a decision and now I want to know if you pro’s agree.
The app needs database-access on different pages with different tasks. There are actually 2 pages that share the exact same database-functionality but for different user-roles. That would in my understanding best be handled with a shared controller. But the rest of the pages need a different though partially overlapping set of db-functions.
And for the sake of simplicity concerning maintenance I would like to keep the database-functionality in one place.
Now: would that place be a plugin?
And is this information (from 2016) still correct?:
If so, would it be enough to put an index.php in the plugin-directory(/site/plugins/myDBplugin/)?