1.

Explain the difference between helper and library in CodeIgniter?

Answer»

Helper is a set of COMMON FUNCTIONS which we can use within Models, VIEWS, Controllers everywhere. Once we include that file then we can get access to the functions.
Library is a class which we need to make an instance of the class by $this->load->library() this function.

NOTE : A library is used in object-oriented context but a helper is more SUITABLE to be used within the Views

Also READ: Laravel interview questions


Discussion

No Comment Found