Home  >  Article  >  Backend Development  >  When using ThinkPHP under Linux, you need to pay attention to the problems caused by capitalization_PHP tutorial

When using ThinkPHP under Linux, you need to pay attention to the problems caused by capitalization_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:25:501278browse

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324071.htmlTechArticleAfter working on it all afternoon, I accidentally remembered that Linux recognizes the case of files. I checked the code and found that the instantiated class I didn't pay attention to the case of the file. For example, $dao = D("inventoryview") corresponds to...
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