CodeClerks

Helper vs. Library: CodeIgniter



Write the reason you're deleting this FAQ

Helper vs. Library: CodeIgniter

I find it very difficult to decide if I want to create a Helper or a Library for CodeIgniter. Is there some reason or difference between the two that would help me determine when to create a library and when to create a helper?

There has to be some difference since there is a clear separation by the developers and by the directory structure/naming.

Which one should I use and why?

Comments

Please login or sign up to leave a comment

Join
ultimate
Helpers are just small functions that help you avoid repetitive code and produce standard results.
Whereas libraries are contains classes, can include different files, talk to database etc.



Are you sure you want to delete this post?