mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
空操作方法的参数传入去掉操作方法后缀
This commit is contained in:
@@ -386,7 +386,7 @@ class App
|
|||||||
} elseif (is_callable([$instance, '_empty'])) {
|
} elseif (is_callable([$instance, '_empty'])) {
|
||||||
// 空操作
|
// 空操作
|
||||||
$call = [$instance, '_empty'];
|
$call = [$instance, '_empty'];
|
||||||
$vars = [$action];
|
$vars = [$$actionName];
|
||||||
} else {
|
} else {
|
||||||
// 操作不存在
|
// 操作不存在
|
||||||
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
|
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
|
||||||
|
|||||||
Reference in New Issue
Block a user