thinkphp5 怎么跳转到自定义的路由呢?

浏览:1989 发布日期:2017/11/08 分类:ThinkPHP5专区
Route::rule('test','index/index/test');这是自定义的路由。


然后在index1方法中跳转过去
public function index1(){
$this -> success('成功',url('test'));
}


跳转后在浏览器上自动生成的地址
http://www.ntp5.com/index/index/test.html
总是跳转后报错,这是怎么回事呢?
最佳答案
评论( 相关
后面还有条评论,点击查看>>