search

Home  >  Q&A  >  body text

Why does it always prompt that the method parameter is wrong: m

Why do pathinfo mode and alias mode always prompt that the variable parameters of the function are wrong?

乒乓胖乒乓胖2380 days ago2004

reply all(6)I'll reply

  • 乒乓胖

    乒乓胖2018-06-06 10:18:35

    Thank you. I also have to provide parameters. I don’t know why. I downloaded the latest tp5 and it didn’t solve the problem.

    reply
    0
  • 乒乓胖

    Modify application configuration or custom configuration // URL parameter mode 0 parses in pairs by name 1 parses in sequence 'url_param_type' => 1, The pathinfo mode can pass parameters normally, but the alias route Route::alias still reports an error.

    乒乓胖 · 2018-06-06 15:44:37
    乒乓胖

    Using the array method for alias routing is OK, but Route::alias still reports an error, which is strange.

    乒乓胖 · 2018-06-06 15:47:35
    乒乓胖

    Finally ok think\Route::alias, I forgot to add the think path earlier.

    乒乓胖 · 2018-06-06 15:51:12
  • 会玩拯救不开心

    会玩拯救不开心2018-06-05 18:17:18

    I've also encountered this~ Maybe the teacher's other settings are different from ours. Just bring parameters for access, like this! ? http://www.tp5.com/index/demo/mult/n/22/m/33

    reply
    0
  • 乒乓胖

    My problem is caused by not listening carefully in the lesson on routing variable rules. Shame on you! !

    乒乓胖 · 2018-06-07 11:26:27
  • Cancelreply