Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-21 15:25:50
Original
1343 people have browsed it

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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template