• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot find model class

[eluser]Karman de Lange[/eluser]
Model name = Actual file name (site_model.php) as well as the name in the calling function $this->load->model('site_model').


I've tried both approaches but it's still not working... :/

[eluser]Karman de Lange[/eluser]
Ok, try following:

go to file: system/core/loader.php

Line ~298 above require_once($mod_path.'models/'.$path.$model.'.php'); add:

echo $mod_path.'models/'.$path.$model.'.php';die;

This will then print the full path to your model. Can you then please post it here or drop me PM if you don't want it on public forum

Hey Karman, sorry for replying so late

that echo printed the following, which seems correct:

I've got that file inside models folder, so I have no idea why it keeps throwing that error

Thanks again

Remove the space!

<? php

// should be


[quote author="InsiteFX" date="1397306258"]Remove the space!

<? php

// should be


Indeed, that was the problem >.<

Thanks for the help!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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