CodeIgniter Forums
Relationships between Components, Modules and Plugins in mvc - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Relationships between Components, Modules and Plugins in mvc (/showthread.php?tid=25510)



Relationships between Components, Modules and Plugins in mvc - El Forum - 12-14-2009

[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!


Relationships between Components, Modules and Plugins in mvc - El Forum - 12-15-2009

[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.


Relationships between Components, Modules and Plugins in mvc - El Forum - 12-16-2009

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