Load Model giving Error 500 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Load Model giving Error 500 (/showthread.php?tid=73434) |
Load Model giving Error 500 - nicolaifurtado - 04-24-2019 Morning to everybody. In my controller archive, I have a __construct function, and when i try to load a model as "$this->load->model("myModel"), and I refresh my website, it always gives me a Error 500! If someone knows how to get ride of this problem, I would be very happy. Thanks. RE: Load Model giving Error 500 - php_rocs - 04-24-2019 @nicolaifurtado, What is the permission of the model myModel.php file? Also, you are not following the naming convention for CI models https://codeigniter.com/user_guide/general/models.html?highlight=model#anatomy-of-a-model RE: Load Model giving Error 500 - InsiteFX - 04-24-2019 The first letter of a class library Model or Controller has to be upper case. The file should be saved with the same name as the class name. |