CodeIgniter Forums
Can't Name Model and Controller the Same? - 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: Can't Name Model and Controller the Same? (/showthread.php?tid=46797)



Can't Name Model and Controller the Same? - El Forum - 11-15-2011

[eluser]Unknown[/eluser]
Hey all,

I have a model and a controller named the same and when I try to call $this->load->model() everything just stops...no exception, no nothing. Can you not have a model and controller with the same name? Don't they exist is different containers?

Thanks,
Brent