![]() |
Model Question - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Model Question (/showthread.php?tid=27417) |
Model Question - El Forum - 02-10-2010 [eluser]napz[/eluser] I am creating 2 model? but i keep having errors like "Fatal error : Call to a member function resumeInfo() on a non-object in C:\xampp\htdocs\cipms\system\application\controllers\test.php on line 6 " is it okay to create 2 model? Maybe the error is because i have 2 model. Model Question - El Forum - 02-10-2010 [eluser]eoinmcg[/eluser] You can use as many models as you like in your controllers. Make sure you're loading them: Code: $this->load->model('Model_name_1'); And calling the methods correctly: Code: $data['resume'] = $this->Model_name_1->resumeInfo(); Model Question - El Forum - 02-10-2010 [eluser]napz[/eluser] Thanks for the reply, I found the problem. I am not auto loading the model name. |