From bcc743ea70bc2e67dac9e5e4cfa19a5a7e87a195 Mon Sep 17 00:00:00 2001 From: Emmanuel ROY Date: Fri, 6 Dec 2019 22:56:15 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20template=20pour=20les=20commande?= =?UTF-8?q?s=20console=20permettant=20de=20netooyer=20le=20cache=20et=20d'?= =?UTF-8?q?ajouter=20=C3=A0=20la=20vol=C3=A9=20des=20modules=20d=C3=A9j?= =?UTF-8?q?=C3=A0=20test=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: créer les commandes complétement TODO: envoyer les bugs wordpress TODO: corriger le bug de création de la base de donnée pour prestashop --- .../include/controlleurs/prestashop.php | 10 ++- .../include/controlleurs/wordpress.php | 2 +- console/bin.php | 18 ++++++ console/command/cache.class.php | 19 ++++++ console/command/module.class.php | 62 +++++++++++++++++++ 5 files changed, 109 insertions(+), 2 deletions(-) create mode 100644 console/bin.php create mode 100644 console/command/cache.class.php create mode 100644 console/command/module.class.php diff --git a/application/include/controlleurs/prestashop.php b/application/include/controlleurs/prestashop.php index 952a2e6..8ba0552 100644 --- a/application/include/controlleurs/prestashop.php +++ b/application/include/controlleurs/prestashop.php @@ -1,5 +1,13 @@ load('prestashop');die(); +/* + * Avoid Warning on my version .... + * + on application/modules/prestashop/config/config.inc.php:125 + + define('__PS_BASE_URI__', '/prestashop'.$context->shop->getBaseURI()); + + */ +//echo $app->load('prestashop');die(); $templateData = array('app' => $app); \ No newline at end of file diff --git a/application/include/controlleurs/wordpress.php b/application/include/controlleurs/wordpress.php index 5b2c150..103f770 100644 --- a/application/include/controlleurs/wordpress.php +++ b/application/include/controlleurs/wordpress.php @@ -25,5 +25,5 @@ $app = new MVC\Classe\Modular($name,'wordpress',$url_params); */ -echo $app->load('wordpress'); die(); +//echo $app->load('wordpress'); die(); $templateData = array('app' => $app); \ No newline at end of file diff --git a/console/bin.php b/console/bin.php new file mode 100644 index 0000000..83564dd --- /dev/null +++ b/console/bin.php @@ -0,0 +1,18 @@ +#!/usr/bin/php +