CodeIgniter Forums

Full Version: Relationships between Components, Modules and Plugins in mvc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Mahyar Ss[/eluser]
hi friends,

I'm confused!
in simple cms with CI how work Components, Modules and Plugins together!
(Technical relationship between these cases with MVC)

some cms use:
example: joomla

please explain their relationships in an application
With the mentioned technical reasons...

for example: i have saw com_poll in components also mod_poll modules
What is the difference?

i want to learn more about designing pattern and how do I use them for my program
(simple CMS with CI)

thnX!

El Forum

[eluser]rogierb[/eluser]
In joomla:
A component is a larger functionality like a gallery
A module can be part of a component, like a module for showing the latest 4 pictures.
A plugin is something that can be used by components or modules (like a PDF plugin)

In CI, there are no components.
If you want to make the comparison, which would be like comparing a chicken with a car:
Joomla Components = CI modules
Joomla Modules = CI helpers
Joomla Plugin = CI plugin

But that comparison is as accurate as shooting the sun with a bb-gun.

El Forum

[eluser]Mahyar Ss[/eluser]
Excellent
Was detailed
Thank you