📜  http响应代码codeigniter 4 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:56.181000             🧑  作者: Mango

代码示例1
$data = [
    'success' => true,
    'id' => 123
];

return $this->response->setJSON($data);
// or
return $this->response->setXML($data);