thinkphp单应用路由定义方法技巧

源码 · 2022-12-03 · 206 人浏览
定义前:
http://doamin/index.index/index
http://doamin/admin.index/index

Route::rule(':version/:controller/:action',':version.:controller/:action');

定义后:
http://doamin/index/index/index
http://doamin/admin/index/index
thinkphp
豫ICP备17047052号-1