Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Bundle MMVC
#1
Thumbs Up 
(This post was last modified: 06-07-2016, 05:59 AM by dsv.)

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.
Reply
#2

Project die? i loved the idea
Reply




Theme © iAndrew 2016 - Forum software by © MyBB