public function deleteUserPhoneAction() { header('Content-Type: application/json; charset=utf-8'); header('Cache-Control: no-store, no-cache'); header('Expires: ' . date('r')); $id = Validate::validateInputVar('id', 'INPUT_GET', 'int'); $model = new PhoneTableModel(); $model->setId($id); $model->setTable('phone'); echo $model->deleteRecord(); }