已解决(文件名错了)--无法加载模块:Index——无大小写问题

浏览:1580 发布日期:2014/08/04 分类:求助交流
按照后盾网第九课视频教程操作应用分组,怎么也不成功,不管访问前台后台都是提示“无法加载模块:Index”。
在网上查了很多解决方法,都没有解决。
版本是3.1.3,还请帮忙看看,非常感谢。
目录结构:
[codeE:.
├─App
│ ├─Common
│ ├─Conf
│ ├─Lang
│ ├─Lib
│ │ ├─Action
│ │ │ ├─Admin
│ │ │ └─Home
│ │ ├─Behavior
│ │ ├─Model
│ │ └─Widget
│ ├─Runtime
│ │ ├─Cache
│ │ ├─Data
│ │ ├─Logs
│ │ └─Temp
│ └─Tpl
└─ThinkPHP
├─Common
├─Conf
├─Extend
│ ├─Action
│ ├─Behavior
│ ├─Driver
│ │ ├─Cache
│ │ ├─Db
│ │ ├─Session
│ │ ├─TagLib
│ │ └─Template
│ ├─Function
│ ├─Library
│ │ └─ORG
│ │ ├─Crypt
│ │ ├─Net
│ │ └─Util
│ │ └─Image
│ │ └─Driver
│ ├─Mode
│ │ ├─Amf
│ │ ├─Cli
│ │ ├─Lite
│ │ ├─Phprpc
│ │ ├─Rest
│ │ │ └─Behavior
│ │ └─Thin
│ ├─Model
│ ├─Tool
│ │ ├─Requirements-Checker
│ │ │ └─assets
│ │ │ ├─denied
│ │ │ └─rewrite
│ │ ├─thinkeditor
│ │ │ ├─plugins
│ │ │ └─skins
│ │ │ ├─default
│ │ │ │ ├─dialog
│ │ │ │ │ └─css
│ │ │ │ └─img
│ │ │ └─qq_face
│ │ └─TPM
│ │ └─Tpl
│ │ ├─Index
│ │ └─Public
│ │ ├─css
│ │ └─js
│ └─Vendor
│ ├─EaseTemplate
│ ├─phpRPC
│ │ ├─dhparams
│ │ └─pecl
│ │ └─xxtea
│ │ └─test
│ ├─SmartTemplate
│ ├─Smarty
│ │ ├─plugins
│ │ └─sysplugins
│ ├─TemplateLite
│ │ └─internal
│ └─Zend
│ ├─Amf
│ │ ├─Adobe
│ │ ├─Auth
│ │ ├─Parse
│ │ │ ├─Amf0
│ │ │ ├─Amf3
│ │ │ └─Resource
│ │ ├─Request
│ │ ├─Response
│ │ ├─Server
│ │ ├─Util
│ │ └─Value
│ │ └─Messaging
│ ├─Date
│ ├─Loader
│ │ ├─Autoloader
│ │ └─PluginLoader
│ └─Server
│ ├─Method
│ └─Reflection
│ └─Function
├─Lang
├─Lib
│ ├─Behavior
│ ├─Core
│ ├─Driver
│ │ ├─Cache
│ │ ├─Db
│ │ └─TagLib
│ └─Template
└─Tpl][/code]其实我还没有做任何更多的改动,只到了分组这块就进行不下去了,除了在配置文件加了分组的参数外,在Aciton下面增加了Home和Admin相关文件,别的目录都没动过。
index.php文件<?php
define('APP_NAME','App');
define('APP_PATH','./App/');
define('APP_DEBUG',TRUE);
require './ThinkPHP/ThinkPHP.php';
?>
config.php文件<?php
return array(
    //'配置项'=>'配置值'
    //'URL_CASE_INSENSITIVE' => true,
    'APP_GROUP_LIST' => 'Home,Admin',
    'DEFAULT_GROUP' => 'Home',
);
?>
IndexAction.class.php文件<?php
/**
*这是前台首页控制器
*/
Class IndexAciton extends Action {
    Public function index () {
    echo 'This is Home';
    }
}
?>
我是访问如下地址:http://127.0.0.1/wish/index.php/./Admin/IndexAction.class.php<?php
/**
*这是后台首页控制器
*/
Class IndexAction extends Action{
    Public function index () {
    echo 'This is Adimin';
    //$this->display();
    }
}
?>
访问http://127.0.0.1/wish/index.php/Admin
最佳答案
评论( 相关
后面还有条评论,点击查看>>