[eluser]searain[/eluser]
So helper is a collection of functions.
Plugin is usually a single function.
Library is for class.
So we can create our own library, our own plugin, and our own helper.
My question is what factors will be involved when we decide that should we make it a helper/plugin (
function) or should we make it a library (
class)?
In some pure OOP languages, everything is a object of a class. But in php and CI, sometimes we make functions, sometimes we make classes, for example, in the CI helper, we have helper as download, in the CI library, we have a class of upload.
Download is a helper a collection of functions in CI, upload is a class in CI library, what factors contribute to CI's decision about making download a helper and making upload a class?