CodeIgniter Forums
diff between helper and plugin - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: diff between helper and plugin (/showthread.php?tid=9763)



diff between helper and plugin - El Forum - 07-08-2008

[eluser]Unknown[/eluser]
Please, can anyone Tell me the difference between helpers and plugins?


diff between helper and plugin - El Forum - 07-08-2008

[eluser]xwero[/eluser]
A helper is a collection of related functions and a plugin is one function.


diff between helper and plugin - El Forum - 07-08-2008

[eluser]Chicken's Egg[/eluser]
Plugins are mend for just one function, where as helpers contain a couple of functions. That's the only difference I know.


diff between helper and plugin - El Forum - 07-08-2008

[eluser]Sam Dark[/eluser]
Library — include, instanciate, attach to Controller.

Plugin is identical to Helper but commonly include different things:

Plugin — include. Mostly for external classes / functions.
Helper — include. Mostly for view functions.


diff between helper and plugin - El Forum - 07-09-2008

[eluser]Seppo[/eluser]
The difference between Plugin and Helpers is not where it is used... The User guide defines it
Quote:Plugins work almost identically to Helpers. The main difference is that a plugin usually provides a single function, whereas a Helper is usually a collection of functions. Helpers are also considered a part of the core system; plugins are intended to be created and shared by our community.