【BUG报告】绑定域名到Controller

浏览:329 发布日期:2018/04/22 分类:ThinkPHP5专区
TP版本5.0,绑定二级域名到Module/Controller,按要求设定Route::domain('service','service/Index');service/Index.php中有三个方法class Index extends Controller{
    public function index(){}
    public function a(){}
    public function b(){}
    public function c(){}
}
如果根域名为abc.com
按理,如果用url('service/Index/a')应生成http://service.abc.com/a.html,但实际生成了http://service.abc.com/index/a.html
请问这是一个BUG么?还是我设置的时候有问题?
最佳答案
评论( 相关
后面还有条评论,点击查看>>