Hello,
the idea
I'm playing with a concept of modular website builder - now mostly in theory, which would containt pages / collections based on modules (either preprogrammed or done specifically when needed).
Every module with come with it's ties to DB, views/templates and core data processing, I'm thinking about factory
pattern:
basic module wrapper - having normalized names -> callDB, processData, returnToTemplate
each module then inherits this wrapper and just adds it's calls to DB, it's data processing and finally will return to data, then in application, I will just do something like:
$this->modules->each->callDB(); //obviously, pseudo-PHP
the problem
What am I struggling with, however, is incorporating this whole idea into CodeIgniter's MVC approach and it's data structure, so it won't be/feel (i know, subjective) unnatural and/or meaningless.
Any ideas?
(under tree structre i - i know, that i can do whatever i like. However, I don't know if I like dir modules
with subir for each module, or templates in application/templates
and modules in application/modules
- and those modules, it actually doesn't make sense to me, since my modules are somewhat different than CI modules... you know...)
edit1
So... is this so hardcore or so dumb that there are no answers??