TP5.1 URL生成没有生成预期的结果

浏览:389 发布日期:2017/12/05 分类:ThinkPHP5专区
//route.php
Route::domain('login', 'login'); //配置登录模块
Route::domain('www', 'home'); //配置登录模块
//以下代码是在home/contoller
$loginurl = url('Login/index', 'id=1', 'html', 'login');
echo $loginurl;
//輸出結果
//http://login/login/index/id/1.html
//但是预期的结果应该是
//http://login.test.cn/login/index/id/1.html
最佳答案
评论( 相关
后面还有条评论,点击查看>>