public function action_delete_draft() { if ($this->request->method() !== Request::POST) { return; } $this->model->clean_draft(); $this->response->json(TRUE); }