普通分组下控制器无法加载模块

浏览:617 发布日期:2016/04/11 分类:求助交流 关键字: 普通分组 控制器
使用 普通模式 建立了2个分组
分别是 Index 和 Admin

然后分别建立控制器:
WWW\wish\App\Lib\Action\Admin\IndexAction.class.php

<?php
class IndexAction extends Action{
public function index(){
echo('This is Admin');
}
public function haha(){
echo 111;
}
}
?>


WWW\wish\App\Lib\Action\Index\ IndexAction.class.php

<?php
class IndexAction extends Action{
public function index(){
echo 'hello';
}
public function handle(){
echo 'haha';
}
}
?>


使用浏览器访问:
http://localhost/wish/index.php/index
http://localhost/wish/index.php/admin
时是正常的。
但是当访问:
http://localhost/wish/index.php/index/index
http://localhost/wish/index.php/index/handle
http://localhost/wish/index.php/admin/index
http://localhost/wish/index.php/admin/haha
时报错,提示无法加载模块,错误位置:
FILE: D:\phpStudy\WWW\wish\ThinkPHP\Common\functions.php  LINE: 112
请问这个是怎么回事?
WWW\wish\App\Conf\config.php下已经开启了不区分大小写:
'URL_CASE_INSNESITIVE' => TRUE,
最佳答案
评论( 相关
后面还有条评论,点击查看>>