Home  >  Article  >  Backend Development  >  Thinkpad e40 0578mdc When using ThinkPHP under Linux, you need to pay attention to the problems caused by capitalization

Thinkpad e40 0578mdc When using ThinkPHP under Linux, you need to pay attention to the problems caused by capitalization

WBOY
WBOYOriginal
2016-07-29 08:46:231166browse

After working on it all afternoon, I accidentally remembered that Linux recognizes the case of files. After checking the code, I found that the file case was not paid attention to when instantiating the class. For example, the view file corresponding to $dao = D("inventoryview") is InventoryViewModel.class.php. This is no problem when running under windows, but under linux, it needs to be written as $dao = D("InventoryView").
Hey, small details can easily lead to big problems. Fortunately, it was solved~~hehe

The above introduces the problems caused by paying attention to capitalization when using ThinkPHP under Linux on thinkpad e40 0578mdc, including the content of thinkpad e40 0578mdc. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn