public function removeentry() { $form = $this->param("form", null); $entryId = $this->param("entryId", null); if ($form && $entryId) { $frm = "form" . $form["_id"]; $this->app->db->remove("forms/{$frm}", ["_id" => $entryId]); } return $form && $entryId ? '{"success":true}' : '{"success":false}'; }