From 5801b095830df91937ec77153b44e00ebfa7b3ba Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 14 Aug 2020 16:09:46 +0200 Subject: [PATCH] nom du module --- core/module/page/page.php | 3 ++- module/{rechercher/rechercher.php => research/research.php} | 5 ++++- module/{rechercher => research}/view/index/index.php | 0 module/{rechercher => research}/view/result/result.php | 0 4 files changed, 6 insertions(+), 2 deletions(-) rename module/{rechercher/rechercher.php => research/research.php} (99%) rename module/{rechercher => research}/view/index/index.php (100%) rename module/{rechercher => research}/view/result/result.php (100%) diff --git a/core/module/page/page.php b/core/module/page/page.php index 0afd8acd..52c91f84 100755 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -34,7 +34,8 @@ class page extends common { 'blog' => 'Blog', 'form' => 'Formulaire', 'gallery' => 'Galerie', - 'redirection' => 'Redirection' + 'redirection' => 'Redirection', + 'research' => 'Rechercher' ]; public static $typeMenu = [ 'text' => 'Texte', diff --git a/module/rechercher/rechercher.php b/module/research/research.php similarity index 99% rename from module/rechercher/rechercher.php rename to module/research/research.php index 1d2a5d75..edd6eedc 100755 --- a/module/rechercher/rechercher.php +++ b/module/research/research.php @@ -17,7 +17,7 @@ // Module de recherche d'un mot ou d'une phrase clef -class rechercher extends common { +class research extends common { public static $actions = [ 'index' => self::GROUP_VISITOR @@ -29,6 +29,9 @@ class rechercher extends common { public static $resultTitle = ''; + const RESEARCH_VERSION = '1.1'; + + public function index() { if($this->isPost()) { //Initialisations variables diff --git a/module/rechercher/view/index/index.php b/module/research/view/index/index.php similarity index 100% rename from module/rechercher/view/index/index.php rename to module/research/view/index/index.php diff --git a/module/rechercher/view/result/result.php b/module/research/view/result/result.php similarity index 100% rename from module/rechercher/view/result/result.php rename to module/research/view/result/result.php