From 428dec3527bdfb669d515266d0649b705f22b9fa Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 11 Feb 2023 19:06:59 +0000 Subject: [PATCH] POST 'models' Deduplicate POST value assignment for add/edit operations in post.php with a 'model' concept. This should also help prevent things breaking when one of the functions are updated but the other is missed. --- models/client.php | 8 ++++++ models/company.php | 12 ++++++++ models/user.php | 5 ++++ post.php | 68 ++++++++++++---------------------------------- 4 files changed, 42 insertions(+), 51 deletions(-) create mode 100644 models/client.php create mode 100644 models/company.php create mode 100644 models/user.php diff --git a/models/client.php b/models/client.php new file mode 100644 index 00000000..d603d5dc --- /dev/null +++ b/models/client.php @@ -0,0 +1,8 @@ +