in CodeIgniter by
How can you add or load a model in CodeIgniter?

▼ Show 1 Answer

0 votes
To load models in controller functions, use the following function:


If in case your model file is located in sub-directory of the model folder, then you have to mention the full path. For example, if your file location is application/controller/models/project/ModelName. Then, your file will be loaded as shown below,

Learn More with Madanswer

Related questions

0 votes
asked Dec 29, 2020 in CodeIgniter by SakshiSharma