search

Home  >  Q&A  >  body text

thinkphp5.1 model passes multiple parameters and modifies routing parameters. How to modify them? Please answer.

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

小破孩小破孩2056 days ago1538

reply all(1)I'll reply

  • 小破孩

    小破孩2019-06-22 09:42:46

    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

    reply
    0
  • Cancelreply