为了能快速了解并处理您的问题,请提供以下基础信息: 9.2
CentOS8
PHP Warning: Unexpected character in input: '' (ASCII=22) state=0 in /www/wwwroot
[0] HttpException in [url=]Module.php line 97[/url]
控制器不存在:app\index\controller\Index
- $this->app['hook']->listen('module_init');
- try {
- // 实例化控制器
- $instance = $this->app->controller($this->controller,
- $this->rule->getConfig('url_controller_layer'),
- $this->rule->getConfig('controller_suffix'),
- $this->rule->getConfig('empty_controller'));
- } catch (ClassNotFoundException $e) {
- throw new HttpException(404, 'controller not exists:' . $e->getClass());
- }
- $this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
- // 获取当前操作名
- $action = $this->actionName . $this->rule->getConfig('action_suffix');
- if (is_callable([$instance, $action])) {
- // 执行操作方法
- $call = [$instance, $action];
Call Stack- in [url=]Module.php line 97[/url]
- at Module->exec() in [url=]Dispatch.php line 168[/url]
- at Dispatch->run() in [url=]App.php line 432[/url]
- at App->think\{closure}(object(Request), object(Closure), null)
- at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in [url=]Middleware.php line 185[/url]
- at Middleware->think\{closure}(object(Request))
- at call_user_func(object(Closure), object(Request)) in [url=]Middleware.php line 130[/url]
- at Middleware->dispatch(object(Request)) in [url=]App.php line 435[/url]
- at App->run() in [url=]index.php line 42[/url]
|
|