|
发表于 2024-4-20 23:06:46
|
显示全部楼层
老大,这是咋回事
#0 [0]HttpException in [url=]Controller.php line 76[/url]
控制器不存在:app\controller\Register
- ->setAction($this->actionName);
- }
- public function exec()
- {
- try {
- // 实例化控制器
- $instance = $this->controller($this->controller);
- } catch (ClassNotFoundException $e) {
- throw new HttpException(404, 'controller not exists:' . $e->getClass());
- }
- // 注册控制器中间件
- $this->registerControllerMiddleware($instance);
- return $this->app->middleware->pipeline('controller')
- ->send($this->request)
- ->then(function () use ($instance) {
- // 获取当前操作名
|
|