Home  >  Article  >  php教程  >  thinkphp 调试模式下模块大小写问题

thinkphp 调试模式下模块大小写问题

WBOY
WBOYOriginal
2016-06-06 20:08:531674browse

在使用thinkphp 中, 入口写入以下代码, ?php//农场主管理平台 - 箱子系统defined('ROOT_PATH') or define('ROOT_PATH', dirname(__FILE__));define('APP_DEBUG', TRUE);define('THINK_PATH', './system/core/ThinkPHP/');define('APP_NAME', 'farm');define(

在使用thinkphp 中, 入口写入以下代码,

<?php //农场主管理平台 - 箱子系统
defined('ROOT_PATH') or define('ROOT_PATH', dirname(__FILE__));
define('APP_DEBUG', TRUE);
define('THINK_PATH', './system/core/ThinkPHP/');
define('APP_NAME', 'farm');
define('APP_PATH', './farm/');
require( THINK_PATH."ThinkPHP.php");

发现 如下图错误:

1原因是 3.0 开启调试模式, 默认就开启 大小写严格检查, 要关闭这个, 在config中添加 debug.php配置文件, 如下图

1

里面的代码:

<?php return  array(
		'APP_FILE_CASE'  		=>  false, // 是否检查文件的大小写 对Windows平台有效
);

这样就把大小写严格问题, 解决了. 关于debug 详细配置, 查看 thinkphp 核心库中的Conf文件夹下的debug.php.

最近在研究 android 与 php通信的问题, 所以博客更新很慢了….

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