CodeIgniter Forums
Can't use uppercase names?? - 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 use uppercase names?? (/showthread.php?tid=26952)

Pages: 1 2


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]punchi[/eluser]
Hi again =)

I registered an account with DreamHost and I had some troubles to load or CI finds controllers, views and models with an uppercase letter.

As soon as the controller in the site become from "general/V_LoginSesion.php" to "general/v_loginsesion.php" everything works.

Its a bit confusing have "loginsesion" or "modifysomethingandmore" without uppercases... a solution was "modify_something_and_more" but I dont want to modify all the files I have just for this (for me) strange incompatibility

Already tested all the three solutions to work with DreamHost, and now my .htaccess its
Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|captcha|apc|images|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

What can I do?

Thanks! =)


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]Ceros[/eluser]
Correct me if i'm wrong, but it's not because you are running your app on a Linux server? and files must be in lowercase?


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]punchi[/eluser]
Yes, its a linux server, but I didn't know that the files must be in lowercase =O that was "the problem"? hehe...


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]danmontgomery[/eluser]
They don't have to be lowercase, but linux is case sensitive.


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]punchi[/eluser]
there's a problem then... if its case sensitive, it should work with "V_LoginSesion.php" and with "v_loginsesion.php" too, and that's not working =/


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]danmontgomery[/eluser]
[quote author="punchi" date="1264651740"]there's a problem then... if its case sensitive, it should work with "V_LoginSesion.php" and with "v_loginsesion.php" too, and that's not working =/[/quote]

I think you're confused about what "case sensitive" means.


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]Colin Williams[/eluser]
CodeIgniter has style rules and naming conventions. Head over to the user guide to learn about them.


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]punchi[/eluser]
[quote author="noctrum" date="1264651854"][quote author="punchi" date="1264651740"]there's a problem then... if its case sensitive, it should work with "V_LoginSesion.php" and with "v_loginsesion.php" too, and that's not working =/[/quote]

I think you're confused about what "case sensitive" means.[/quote]

Can you tell me then, what really means "case sensitive" please? Or what you mean?

[quote author="Colin Williams" date="1264652951"]CodeIgniter has style rules and naming conventions. Head over to the user guide to learn about them.[/quote]

The page who talk about it its the Styling Guide, its very helpful for standar programming, thanks, but its bad to know that my localhost accept every name uppercase, lowercase... how can I configure my localhost then? :-S I though that DreamHost was the problem but I figure that its my own configuration, I had AppServ...


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]punchi[/eluser]
or well... isn't too important, I have a developer webpage to test the things... however, bad to know that my local isnt well configurated as installed =/


Can't use uppercase names?? - El Forum - 01-27-2010

[eluser]Colin Williams[/eluser]
Yes, it is "bad to know" because you didn't follow CI's naming conventions. If you had, nothing would be "bad to know."

If your dev box runs on Windows, the case won't matter because Windows is case insensitive. Take that onto a case sensitive box running on a *nix OS and suddenly you have problems.

The naming conventions eliminate the incompatibilities of file systems, and that's why they exist.