入口文件绑定应用,url生成的链接错误

浏览:448 发布日期:2020/06/19 分类:ThinkPHP6专区
多应用模式下index.phpnamespace think;

require __DIR__ . '/../vendor/autoload.php';

// 执行HTTP应用并响应
$http = (new App())->http;

$response = $http->name('index')->run();

$response->send();

$http->end($response);
url('index/index')生成的url是:http://www.xx.com/index/index/index.html
这样访问报错
正确的url是不带应用名的,如:http://www.xx.com/index/index.html
这个是bug还是就是这样,怎么解决好?
最佳答案
评论( 相关
后面还有条评论,点击查看>>