Index.php 代码如下:
<?php
define('APP_NAME','Index');
define('APP_PATH','./index/');
define('APP_DEBUG',TRUE);
require('./ThinkPHP/ThinkPHP.php');
?>其它的都是默认,再浏览器输入 http://localhost/wish/index.php 显示正常,但是如果是输入 http://localhost/wish/index.php/index/index 运行提示出错,错误信息如下:无法加载模块:index
错误位置
FILE: D:\wamp\www\wish\ThinkPHP\Common\functions.php LINE: 112
如果把Debug模式关闭的话,两种访问模式都正常。
这是为什么,哪位解惑下,困扰了很久了,查手册也找不出原因!
最佳答案