The transfer of parameters between thinkphp5 and front-end pages

I use the framework of tp5, and the background route.PHP is configured in this way

clipboard.png

id

clipboard.png
this is the title output of my article on the website

now how can I pass the article id to the background, and how can I receive it in the background

Jun.22,2021

try the front
background: $id= input (' get.id','0','intval');


after studying for less than half a day, I finally figured out that after tp5 has configured the route rules, the front end does not need to use the url function if it needs to pass parameters. Just write the parameters according to the configured rules
clipboard.png
route

clipboard.png
this is the front end parameter passing

Menu