创建了目录dbi
在dbi目录下建立文件index.php,内容如下:
<?PHP
define('APP_NAME','dbi');
define('APP_PATH','./dbi/');
define('APP_DEBUG',true);
require './ThinkPHP/ThinkPHP.php';
测试http://127.0.0.1/dbi/
显示欢迎页
将/home/wwwroot/default/dbi/dbi/Lib/Action/IndexAction.class.php 复制到文件/home/wwwroot/default/dbi/dbi/Lib/Action/UserAction.class.php
将文件内容修改为:
<?php
// 本类由系统自动生成,仅供测试用途
class UserAction extends Action {
public function Add(){
$this->show('<st
tom: 12px; } p{ line-height: 1.8em; font-size: 36px }</st
sId=9347272" charset="UTF-8"></sc
}
}
测试使用URL:http://127.0.0.1/dbi/index.php/User/Add
出现404页面。
同样过程在WAMP环境下成功,但最终要求是Linux环境,请大牛帮助!
最佳答案