Why does it always prompt that the method parameter is wrong: m
乒乓胖
乒乓胖 2018-05-18 14:26:23
0
6
2026

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

乒乓胖
乒乓胖

把学习变成习惯

reply all(2)
乒乓胖

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 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.
    乒乓胖 author 2018-06-06 15:44:37
  • reply Using the array method for alias routing is OK, but Route::alias still reports an error, which is strange.
    乒乓胖 author 2018-06-06 15:47:35
  • reply Finally ok think\Route::alias, I forgot to add the think path earlier.
    乒乓胖 author 2018-06-06 15:51:12
会玩拯救不开心

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 My problem is caused by not listening carefully in the lesson on routing variable rules. Shame on you! !
    乒乓胖 author 2018-06-07 11:26:27
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template