我有一个基本的控制器动作: public function createAction() { $this->view->disable(); $formData = $this->request->getJsonRawBody(); $user = new Users(); $user->first_name = $formData->first_name; $user->last_name = $formData->last_name; $user->email_address = $formData->email_address; $user->password = $formData->password; // this prints to my debug log. $result = $user->save(); AppLogger::$logger->debug(print_r($result, true)); // this does not print. AppLogger::$logger->debug("oh boy #2"); // this does not print either. // which seems to tell me that the line above it is problematic, // but there is no error output from `phalcon serve` echo Json::encode($result); }我看到的最接近错误的是PHP/Phalcon Error: Closed without sending a request; it was probably just an unused speculative preconnection:这出现在 的输出中phalcon serve。我phalcon serve在 Windows 上运行 VSCode。
- 3 回答
- 0 关注
- 385 浏览
添加回答
举报
0/150
提交
取消