App: Uses does not work on the server

1

I created a class in the Lib folder of with some functions. Testing locally, and adding in controller

App::uses('readMessages', 'Utility'); 

Everything works correctly, but when I upload to the actual server, it says it can not find the class readMessages.

Does anyone know how to get around this? Is there a configuration file that I need to modify?

Locally my server is and online my server is <

    

asked by anonymous 04.04.2014 / 16:32

1 answer

2

and have a basic difference for file naming, Windows is not Case Sensitive and Linux yes where according to the

  

Case sensitive is an English-language term that is sensitive to size, or case-sensitive, and is used to indicate that there are differences between upper and lower case letters. Methods and command in a program or a compiler, distinguishes between letter sizes.

So the considers two files named teste.php and Teste.php as files with the same name, which does not happen in the .

For the class APP the first parameter refers to the name of the file that will be imported, so I always recommend using the filename equal to what is allocated in your folder, which in this case would be

App::uses('ReadMessages', 'Utility'); 
    
04.04.2014 / 16:47