From 37f32d186573d4e5f90114a552ad7ba2412b39f2 Mon Sep 17 00:00:00 2001 From: BeardyMike <42244545+BeardyMike@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:05:22 +0000 Subject: [PATCH] Capitalisation Standardisation Moving to lowercase. --- application/Controller/AjaxController.php | 6 +++--- application/Controller/AuthController.php | 6 +++--- application/Controller/ErrorController.php | 8 ++++---- application/Controller/HomeController.php | 4 ++-- application/Controller/LoginController.php | 4 ++-- application/Core/Application.php | 14 +++++++------- application/Core/CoreFunctions.php | 2 +- application/Core/Model.php | 4 ++-- application/Model/Auth.php | 7 ++++--- application/Model/Create.php | 6 +++--- application/Model/Delete.php | 6 +++--- application/Model/Read.php | 6 +++--- application/Model/Update.php | 6 +++--- public/index.php | 4 ++-- 14 files changed, 42 insertions(+), 41 deletions(-) diff --git a/application/Controller/AjaxController.php b/application/Controller/AjaxController.php index 8d32267..1c7016c 100644 --- a/application/Controller/AjaxController.php +++ b/application/Controller/AjaxController.php @@ -1,6 +1,6 @@ url_controller) { - $page = new \MINIM1\Controller\HomeController(); + $page = new \MINIM1\controller\homeController(); $page->index(); } - elseif (file_exists(APP . 'Controller/' . ucfirst($this->url_controller) . 'Controller.php')) { + elseif (file_exists(APP . 'controller/' . $this->url_controller . 'Controller.php')) { // here we did check for controller: does such a controller exist ? // if so, then load this file and create this controller - // like \MINIM1\Controller\CarController - $controller = "\\MINIM1\\Controller\\" . ucfirst($this->url_controller) . 'Controller'; + // like \MINIM1\controller\carController + $controller = "\\MINIM1\\controller\\" . $this->url_controller . 'Controller'; $this->url_controller = new $controller(); // check for method: does such a method exist in the controller ? diff --git a/application/Core/CoreFunctions.php b/application/Core/CoreFunctions.php index 883b65b..e978555 100644 --- a/application/Core/CoreFunctions.php +++ b/application/Core/CoreFunctions.php @@ -1,6 +1,6 @@