CodeIgniter Forums
model won't load if model name same as controller - 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 won't load if model name same as controller (/showthread.php?tid=39722)



model won't load if model name same as controller - El Forum - 03-18-2011

[eluser]jtan[/eluser]
Is this normal?


model won't load if model name same as controller - El Forum - 03-18-2011

[eluser]Eric Barnes[/eluser]
Yes because they have the same class name. One workaround is to name your models: users_m, users_model, etc..