How to load model class in CodeIgniter?
There are three ways to load model classes in a CodeIgniter project. First, at the project level, you can include the model in the project's configuration file, making it available in entire application. Second, if the model needed only in a specific controller, it can be loaded in constructor. Third, if the model is needed in a particular function, it can be loaded directly inside that function.