From ba176c04c279c8e9ed55ce8a23735126b26fcce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Wed, 20 Sep 2023 14:28:42 +0200 Subject: [PATCH] =?UTF-8?q?a=C3=B1adido=20serviciopresupuestos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci4/.env | 2 +- ci4/app/Controllers/Test.php | 8 +++----- ci4/app/Services/PresupuestoService.php | 27 +++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 ci4/app/Services/PresupuestoService.php diff --git a/ci4/.env b/ci4/.env index 1502e939..cfd0651b 100644 --- a/ci4/.env +++ b/ci4/.env @@ -22,7 +22,7 @@ CI_ENVIRONMENT = development # APP #-------------------------------------------------------------------- -app.baseURL = 'https://sk-jjo.imnavajas.es' +app.baseURL = 'https://sk-jjo.imnavajas.es' #app.baseURL = 'https://sk-imn.imnavajas.es' # app.baseURL = "http://safekat.test/" # app.forceGlobalSecureRequests = false diff --git a/ci4/app/Controllers/Test.php b/ci4/app/Controllers/Test.php index baf57e5f..99e248c3 100644 --- a/ci4/app/Controllers/Test.php +++ b/ci4/app/Controllers/Test.php @@ -2,7 +2,7 @@ namespace App\Controllers; -use App\Models\Tarifas\TarifaAcabadoLineaModel; +use App\Services\PresupuestoService; class Test extends BaseController { @@ -15,10 +15,8 @@ class Test extends BaseController public function index() { - $papelFormatoModel = model('App\Models\Configuracion\PapelFormatoModel'); - $data = $papelFormatoModel->getElementsForMenu(); - var_dump($data); - + $text = PresupuestoService::example(); + echo $text; } } \ No newline at end of file diff --git a/ci4/app/Services/PresupuestoService.php b/ci4/app/Services/PresupuestoService.php new file mode 100644 index 00000000..79366e7f --- /dev/null +++ b/ci4/app/Services/PresupuestoService.php @@ -0,0 +1,27 @@ +