[0] HttpException in App.php line 398

控制器不存在:app\index\controller\Nav

  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 = $actionName . $config['action_suffix'];
  12. $vars = [];
  13. if (is_callable([$instance, $action])) {
  14. // 執行操作方法
  15. $call = [$instance, $action];

Call Stack

  1. in App.php line 398
  2. at App