CodeIgniter Forums

Full Version: diff between helper and plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

El Forum

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

El Forum

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

El Forum

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

El Forum

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