Answer the question
In order to leave comments, you need to log in
Looking for a PHP framework with support for "hot-plugging" modules?
There is a basic system that can do basic administrative tasks; written in Kohana 3.2. Recently, the prospect of creating a store of single-sort additions has appeared: all sorts of reports on the same database tables.
I tried to arrange it with one module (different controllers / views), but since there is only one module, then i18n-variables, configs should be stored in one file and there is shitty code in their addition / removal.
These additions are supposed to be added without the participation of a programmer; - literally by clicking in the interface.
Maybe someone faced something similar?
Kohana is not fundamental. I really want to know what you successfully use in such situations, in the form of which structural unit of the system you design (module, addon, plug-in, or whatever it is called in the system you have chosen) and what you would advise to pay attention to. Maybe there are some design patterns ...
UPD: Just below - an important clarification
Answer the question
In order to leave comments, you need to log in
My thoughts about your task:
1) Here you need to understand how the routing of requests to the module is arranged and, accordingly, what exactly should happen at the moment the module is unloaded / loaded. This is highly dependent on the capabilities of the language and how the language is executed. As far as I remember, PHP does not know how to load classes dynamically (at the time of execution).
2) Such a structure is usually called a plugin
3) If you use the plugin system, then use the namespace system (I advise you to look at this topic in the direction of how naming is arranged in PECL)
These additions are supposed to be added without the participation of a programmer; - literally by clicking in the interface.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question