Home > Backend Development > PHP Tutorial > linux下使用ThinkPHP需要注意大小写导致的问题_php技巧

linux下使用ThinkPHP需要注意大小写导致的问题_php技巧

WBOY
Release: 2016-05-17 09:16:43
Original
1168 people have browsed it

弄了一下午,偶然想起linux是识别文件大小写的,查看了一下代码,发现实例化类的时候并没有注意文件大小写。如 $dao = D("inventoryview") 对应的视图文件是InventoryViewModel.class.php。这样在windows下跑是没问题的,但是在linux下,需要写成$dao = D("InventoryView")。

哎,小细节容易导致大问题啊。还好解决了~~嘿嘿

Related labels:
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