新手问题:更改内容后为什么没有效果

浏览:507 发布日期:2013/06/19 分类:求助交流
IndexAction.class.php

class IndexAction extends Action {
public function index(){
echo 'hello,world!';
}

}

index.php

define('THINK_PATH', 'ThinkPHP/'); // 预定义 ThinkPHP路径
define('APP_NAME', 'Think_Test'); // 预定义 项目名称
define('APP_PATH', '.');// 预定义 项目路径
define('APP_DEBUG', TRUE);// 开启调试模式


require THINK_PATH.'ThinkPHP.php'; //加载ThinkPHP框架的入口文件

结果:

应该是:hello,world!
但是实际结果:
:)

欢迎使用 ThinkPHP!
最佳答案
评论() 相关
后面还有条评论,点击查看>>