thinkphp6-路由:路由规则和路由定义
RorinL
2022年06月03日 星期五 18:13:30
Thinkphp
php
thinkphp
thinkphp6
tp的路由可以有多种方式:
Route::get('hello/:aa','index/hello');
Route::rule('hello/:aa','index/hello','GET');
//...
那么文档里的路由规则和路由定义又是什么呢?
其实路由规则就好比’hello/:aa’;而路由定义就是:’index/hello’
近期评论