标签:
$_GET[‘m‘] = ‘Home‘; // 绑定Home模块到当前入口文件
$_GET[‘c‘] = ‘Index‘; // 绑定Index控制器到当前入口文件
define(‘APP_PATH‘,‘./Application/‘);
require ‘./ThinkPHP/ThinkPHP.php‘;
绑定模块和控制器后,原来的访问地址:
http://serverName/index.php/Home/Index/index
就变成:
http://serverName/home.php/index
标签:
原文地址:http://www.cnblogs.com/lsk007/p/4861637.html