search

Home  >  Q&A  >  body text

thinkphp5 alias routing

My code is the same as in the video. Why is it that when calling add with a math alias, only one parameter can only be used normally, and when setting parameters in the function, a default value needs to be set before it can be used, but why is it not set in the video? So how to solve it

人生如梦人生如梦2318 days ago1150

reply all(1)I'll reply

  • 勇敢的心

    勇敢的心2018-07-28 09:41:29

    Will an error be reported if there is no default value?

    reply
    0
  • 人生如梦

    If there is no default value, an error will be reported.

    人生如梦 · 2018-07-28 09:42:30
  • Cancelreply