thinkphp 3.2控制器绑定改变路由
$_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
浙公网安备 33010602011771号