CodeIgniter Forums
Confusion regarding helper plugin and library - 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: Confusion regarding helper plugin and library (/showthread.php?tid=35000)



Confusion regarding helper plugin and library - El Forum - 10-16-2010

[eluser]UdayD[/eluser]
I want develop a site using CI. But a bit confused between a plugin helper and library.

Where i should place what?
Like suppose i have a function to validate a user which i will require in all the files. where should i place it in library or create a helper for it or where so that i can use it in all my controllers.

Similarly whats the difference between a helper and plugin.


Confusion regarding helper plugin and library - El Forum - 10-16-2010

[eluser]MWebber[/eluser]
Helpers are collection of function(methods)
Plugin is only one function(method)


Quote: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.
(from the user guide)


Confusion regarding helper plugin and library - El Forum - 10-16-2010

[eluser]InsiteFX[/eluser]
As of CodeIgniter 2.0 there will be no more Plugins!

InsiteFX