请问高手,我在tp5的behivor里应该如何获取路由参数?

浏览:391 发布日期:2018/03/26 分类:ThinkPHP5专区
请问高手,我在tp5的behivor里应该如何获取路由参数?我是想改造一下ReadHtmlCacheBehavior.class.php文件,适合TP5.

但,怎么都获取不到route.php里的一个路由:
'/article/:id' =>['index/article/index', ['method' => 'get'], ['id' => '\d+']],

请看:
printx($dispatch,$_REQUEST,request()->dispatch(),request()->param(''),input(),request()->route());

依次得到的结果为:


请教高手,应该如何才能得到更多的参数。
最佳答案
评论( 相关
后面还有条评论,点击查看>>