CodeIgniter Forums
Codeigniter Bundle MMVC - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Codeigniter Bundle MMVC (/showthread.php?tid=64888)



Codeigniter Bundle MMVC - dsv - 04-07-2016

Hello everyone!!

So i've been working on a MMVC extension that allows me to implement a simple Modular Pattern into Codeigniter Framework using groups of independent components, typically model, controller, view, config and assets files, arranged in application modules (sub-directory) that can be dropped into other Codeigniter applications.

Every package should have this features:
  • Modularization: reduction of dependencies between the parts of the application.
  • Organization: get everything organized in different folders.
  • Reusability: easy to reuse.
  • Extendibility: makes the application more extensible without sacrificing ease of maintenance.

Since the introduction of Codeigniter v2.0 there has been support for packages built right inside Codeigniter called Third-party Application Packages, this extension add to this packages the extra functionality they needed for full modular support.

After Codeigniter Bundle installation, controllers may be loaded from:

Code:
- /path/to/application/controllers sub-directories
- /path/to/application/bundle/controllers sub-directories

accordingly to the URI route:

and maintain separated files:
  • Autoload packages (hooks, libraries, driver, helper files, custom config files, language files, models, etc).
  • Controllers, models, helpers and libraries extensions.
  • Database migrations.
  • Assets and templates (css, js, fonts, img, etc).

In this simple diagram you can see how did Codeigniter Bundle works with the Codeigniter Framework:

[Image: Codeigniter-Bundle.png?dl=1]

https://github.com/davidsosavaldes/Codeigniter-Bundle

Let me hear your thoughts, i would really appreciate it.


RE: Codeigniter Bundle MMVC - microbica - 02-20-2018

Project die? i loved the idea