CodeIgniter Forums
Can't find Model File?? - 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 find Model File?? (/showthread.php?tid=49617)



Can't find Model File?? - El Forum - 02-27-2012

[eluser]Krasser[/eluser]
Im create a model file name mCustomer.php and store into models->customer->mCustomer.php

Im calling in controller with 'customer/mCustommer'

But error met:

Code:
Unable to locate the model you have specified: mcustomer

Somebuddy can tell me why? in local xampp no this kind problem...


Can't find Model File?? - El Forum - 02-27-2012

[eluser]Chathuranga Tennakoon[/eluser]
i also had plenty of this kind experiences when i migrate my project from windows (WAMP) platform to Linux(LAMP). since the LINUX is case sensitive, you have to be very careful when naming your files. just rename your model file to lowercase.(<b>mcustomer</b>). this is because it is looking for a model called mcustomer with all lowercase letters for the model name.


Can't find Model File?? - El Forum - 02-27-2012

[eluser]Krasser[/eluser]
[quote author="Chathuranga Tennakoon" date="1330333642"]i also had plenty of this kind experiences when i migrate my project from windows (WAMP) platform to Linux(LAMP). since the LINUX is case sensitive, you have to be very careful when naming your files. just rename your model file to lowercase.(<b>mcustomer</b>). this is because it is looking for a model called mcustomer with all lowercase letters for the model name.[/quote]

Thank you, This work!! Smile


Can't find Model File?? - El Forum - 02-27-2012

[eluser]InsiteFX[/eluser]
I use FileZilla and just set it to upload all files in lowercase!

Most FTP Client's allow this...



Can't find Model File?? - El Forum - 02-27-2012

[eluser]Krasser[/eluser]
[quote author="InsiteFX" date="1330349552"]I use FileZilla and just set it to upload all files in lowercase!

Most FTP Client's allow this...
[/quote]

Oh.. thank you FX Smile


Can't find Model File?? - El Forum - 02-27-2012

[eluser]Aken[/eluser]
Not all files should be in lowercase, so please don't use that! If they should, CodeIgniter would not come default with capital letters in some file names.


Can't find Model File?? - El Forum - 02-27-2012

[eluser]InsiteFX[/eluser]
It depends on the server! Some servers the filenames have to be all lowercase and if you check codeIgniter's class you will see that they convert the filenames...



Can't find Model File?? - El Forum - 02-28-2012

[eluser]Krasser[/eluser]
Thank you All of you . . . Im still studying in CodeIgnniter Smile