tp5.1的域名路由和分组路由

1、域名路由,
官网解释:https://www.kancloud.cn/manual/thinkphp5_1/353976
使用Route::domian()->bind();的形式,给一个模块,绑定一个固定的域名。比如,给后台的index模块,设定一个域名:test.cn
1) 例如:下载一个项目,名为tp5,tp5的index模块,全部写后台的控制器,
tp5.1的域名路由和分组路由
2)给tp5这个项目,配置域名为test.cn
tp5.1的域名路由和分组路由
3)在tp5/route/route.php文件夹下,
tp5.1的域名路由和分组路由
4)通过路由访问Admin/getList方法,
tp5.1的域名路由和分组路由