L
L
lytican2013-06-14 22:38:46
Kohana
lytican, 2013-06-14 22:38:46

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

3 answer(s)
V
Vyacheslav Slinko, 2013-06-14
@KeepYourMind

Symfony2 and its Bundles

C
cyberorg, 2013-06-14
@kyberorg

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)

N
Nikita Gusakov, 2013-06-15
@hell0w0rd

These additions are supposed to be added without the participation of a programmer; - literally by clicking in the interface.

Similar functionality - CMS. If you need a framework with a system of plugins / extensions - symphony, everyone said it right. Only now, as I understand it, there is also some kind of similar system in the kohan, but you are not using it correctly. In symphony, the independence of each individual bundle is considered good form. That is, if you tear it out of the application, and replace its services with others, the system will not notice its absence

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question