Alias ​​routing prompt parameter error
电动小老虎
电动小老虎 2017-11-16 20:10:58
0
1
1891

think\Route::rule('add/:n/:m','index/demo/add'); It is OK to access tp5.com/add/5/6 from this address.

think\Route::alias('math','index/demo'); // Change to alias route to access tp5.com/math/add/5/6 This will prompt

Method parameter error: n

throw new \InvalidArgumentException('method param miss:' . $name);




电动小老虎
电动小老虎

reply all(1)
电动小老虎

'url_param_type' => 1, If ​​you need to use routing aliases, they must be parsed in order, not key-value pairs. Otherwise, it will prompt that there are few parameters. . . . . .

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