![]() |
RuntimeException when load model in another modules - HMVC - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: RuntimeException when load model in another modules - HMVC (/showthread.php?tid=64891) |
RuntimeException when load model in another modules - HMVC - ikbenne - 04-07-2016 I have a new problem with Codeigniter HMVC when deploy my project to hosting Unix (it works well on localhost) Code: $this->load->model('User_management/Muser_management'); When I call Muser_management model file in User_profile controllers it throws an error: Type: RuntimeException Message: Unable to locate the model you have specified: Muser_management My structure Code: >root My Muser_mangement.php file: Code: <?php Please help, thanks RE: RuntimeException when load model in another modules - HMVC - PaulD - 04-08-2016 This may not help at all, but try changing PHP Code: $this->load->model('User_management/Muser_management'); to PHP Code: $this->load->model('user_management/muser_management'); Paul. PS Also, not sure if this will make any difference (or even if it is important) but models do not need the closing php tag.( ?> ) If you have a trailing white space that might cause problems too (or so I have been led to believe although I am not sure I completely understand why). |