![]() |
Model Doesnt Load..! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Model Doesnt Load..! (/showthread.php?tid=32695) |
Model Doesnt Load..! - El Forum - 07-31-2010 [eluser]ashipj[/eluser] I have code Code: $this->load->model('DTO/ResponseDTO'); But when i run the application. I get the error Code: Fatal error: Class 'Responsedto' not found in C:\Program Files\xampp\htdocs\php\libraries\Loader.php on line 184 Its just for this class. Other Model classes are loading fine. Is it anything with the name or something..? Thanks for reading Model Doesnt Load..! - El Forum - 08-01-2010 [eluser]Jan_1[/eluser] codeigniter.: styleguide: class_and_method_naming does this help you? Model Doesnt Load..! - El Forum - 08-01-2010 [eluser]ashipj[/eluser] Thanks Jan... But i believe those are just naming conventions. Even if you use "ClassName" instead of "Class_name", It should work fine(or am i wrong here..?). Also all my other classes (like UserDTO, ProfileDTO etc..) follow the same pattern. Any idea, on which cases such error message is displayed? Model Doesnt Load..! - El Forum - 08-02-2010 [eluser]Jan_1[/eluser] How does the head of your ResponseDTO.php look like? Model Doesnt Load..! - El Forum - 08-05-2010 [eluser]ashipj[/eluser] This is how my ResponseDTO.php would look like. Code: <? Model Doesnt Load..! - El Forum - 08-07-2010 [eluser]InsiteFX[/eluser] Where Model_name is the name of your class. Class names must have the first letter capitalized with the rest of the name lowercase. Make sure your class extends the base Model class. InsiteFX |