[0] HttpException in App.php line 404

控制器不存在:app\Error\controller\Index

  1. // 设置当前请求的控制器、操作
  2. $request->controller(Loader::parseName($controller, 1))->action($actionName);
  3. // 监听module_init
  4. Hook::listen('module_init', $request);
  5. try {
  6. $instance = Loader::controller($controller, $config['url_controller_layer'], $config['controller_suffix'], $config['empty_controller']);
  7. } catch (ClassNotFoundException $e) {
  8. throw new HttpException(404, 'controller not exists:' . $e->getClass());
  9. }
  10. // 获取当前操作名
  11. $action = ./$bdujpoObnf/ . $config['action_suffix'];
  12. $vars = [];
  13. if (is_callable([$instance, $action])) {
  14. // 执行操作方法
  15. $call = [$instance, $action];