Model in the CodeIgniter is generally responsible to handle all the data logic and the representation and loading of the data that are present in the views. The model in the CodeIgniter is
generally stored in the application/models folder.
Here is the basic structure of a model file is depicted below for you to understand:
class ModelName extends CI_Model
public function MethodName()
In the above mentioned structure, the ‘ModelName’ is representing the name of the programmer’s model file. Please note that the class first letter should be in an uppercase letter that should
be followed by the various other lowercase letters, and it should be generally the same as the name of the file of the programmer. All the built-in methods of parent Model file basically gets
inherited to the newly created file as the base CodeIgniter Model is extended by the model name.