项目的目录结构如下:
IndexAction.class.php中的内容如下:
<?php
// 本类由系统自动生成,仅供测试用途
class IndexAction extends Action {
public function index(){
header("Content-Type:text/html; charset=utf-8");
echo 'Admin';
$this->display('a.html');
}
}
访问时的路径如下:
http://localhost/secondtrade/index.php/Admin/Index/index