public function deleteCategory($id) { $db = $this->db; $deleted = new ItemCategory(); $deleted->delete($db, $id); }