In CodeIgniter, the Model is used for the Database manipulation – fetch, insert, update, and delete records.
If within the project there are multiple Models are available then it may require to perform the action in a Model which is already created in another Model.
In this case, you can either create a separate function to perform the same action or use the already available method in the Model.
It is possible to reuse the method in the Model from another Model.
Models are loaded in the Model as same as loaded in the Controller using $this->load->model()
.
In this tutorial, I create 3 Models and call 1st and 2nd Model methods from the 3rd Model.