Welcome Guest, Not a member yet? Register   Sign In
Can't use uppercase names??
#1

[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! =)
#2

[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?
#3

[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...
#4

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

[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 =/
#6

[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.
#7

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

[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...
#9

[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 =/
#10

[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.




Theme © iAndrew 2016 - Forum software by © MyBB