Welcome Guest, Not a member yet? Register   Sign In
Understanding CI and modular development
#1

[eluser]rvent[/eluser]
Hello,

I am trying to understand how the modular development works, i ve seen some projects that allow CI apps to use modules in order to extend the application, but i am trying to understand how it works.. At the moment it seems like it is all about routing...? am i correct...?

Is there any information that i could get or links that would help me understand how it works...?

Any info would be appreciated...

Thanks...
#2

[eluser]Colin Williams[/eluser]
Depends a lot on the specific architecture of your application. There is a Modular Extensions contributed library that allows for a different directory structure for MVC, meant to be more like self-contained modules. But it's not exactly a plug-and-play module system for any app.

CI doesn't really have a standard for this because it's best left to the application developers to decide how they want to allow for their apps to be extended/modularized. Lately I've been using a hooks-like system, whereby plugins/modules react to events and actions that happen in the app, like say when a blog post is loaded from the db, plugins can act on the returned result before it reaches the controller and ultimately view. Works well because the core blogging system doesn't need to know what plugins are installed, it just does its thing and invokes usable hook points.




Theme © iAndrew 2016 - Forum software by © MyBB