[0] HttpException in App.php line 391

方法不存在:app\home\controller\Shop->home()

  1. if (is_callable([$instance, $action])) {
  2. // 执行操作方法
  3. $call = [$instance, $action];
  4. } elseif (is_callable([$instance, '_empty'])) {
  5. // 空操作
  6. $call = [$instance, '_empty'];
  7. $vars = [$actionName];
  8. } else {
  9. // 操作不存在
  10. throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
  11. }
  12. Hook::listen('action_begin', $call);
  13. return self::invokeMethod($call, $vars);
  14. }
  15. /**
  16. * 初始化应用

Call Stack

  1. in App.php line 391
  2. at App::module(['home', 'shop', 'home'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 130
  3. at App::run() in start.php line 18
  4. at require('D:\wwwroot\godsoft\w...') in index.php line 17