getModelByID($model_id); $item->approved = 1; $modelService->updateModel($item); } } else { echo $_SERVER['REQUEST_METHOD']; } header('location:models.php'); ?>