From 807baca51ef3c443adc2f8896bf9dbce3a682f14 Mon Sep 17 00:00:00 2001 From: kylian prebost Date: Mon, 8 Jun 2026 14:12:31 +0200 Subject: [PATCH] =?UTF-8?q?creation=20du=20crud=20et=20du=20controllers=20?= =?UTF-8?q?=20pour=20op=C3=A9rations.php=20et=20ajout=20dans=20le=20index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/operation_ctrl.php | 0 index.php | 7 ++++++- models/operation_crud.php | 0 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 controllers/operation_ctrl.php create mode 100644 models/operation_crud.php diff --git a/controllers/operation_ctrl.php b/controllers/operation_ctrl.php new file mode 100644 index 0000000..e69de29 diff --git a/index.php b/index.php index a89fbc0..9dafbca 100644 --- a/index.php +++ b/index.php @@ -66,9 +66,14 @@ break; case 'operations': - require('views/operations_view.php'); + require('controllers/operation_ctrl.php'); + operations_form_ctrl(); break; + case 'add_operation': + require('controllers/operation_ctrl.php'); + add_operation_write_ctrl(); + break; default: require('views/404_view.php'); break; diff --git a/models/operation_crud.php b/models/operation_crud.php new file mode 100644 index 0000000..e69de29