• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load Model giving Error 500

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.


Attached Files Thumbnail(s)


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/gener...of-a-model

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.