thinkphp5.1 model passes multiple parameters and modifies routing parameters. How to modify them? Please answer.
小破孩
小破孩 2019-06-21 12:52:08
0
1
1488

thinkphp5.1 model passes multiple parameters, modify routing parameters, how to modify, please answer

Route::rule(':version/adminlogin/:name:pwd', 'backendapi/:version. Login/login')

Too few arguments to function ............ exactly 2 expected

Can't receive it, this aspect is a bit Ignorant

小破孩
小破孩

山水一程,三生有幸

reply all(1)
小破孩

It has been processed. The reason for the error is not that there are fewer parameters in the path, but the parameters being passed. I passed an unprocessed json, and it becomes a parameter by default. The received values ​​​​can be passed separately

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template