mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido serviciopresupuestos
This commit is contained in:
2
ci4/.env
2
ci4/.env
@ -22,7 +22,7 @@ CI_ENVIRONMENT = development
|
|||||||
# APP
|
# APP
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
app.baseURL = 'https://sk-jjo.imnavajas.es'
|
app.baseURL = 'https://sk-jjo.imnavajas.es'
|
||||||
#app.baseURL = 'https://sk-imn.imnavajas.es'
|
#app.baseURL = 'https://sk-imn.imnavajas.es'
|
||||||
# app.baseURL = "http://safekat.test/"
|
# app.baseURL = "http://safekat.test/"
|
||||||
# app.forceGlobalSecureRequests = false
|
# app.forceGlobalSecureRequests = false
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Controllers;
|
namespace App\Controllers;
|
||||||
|
|
||||||
use App\Models\Tarifas\TarifaAcabadoLineaModel;
|
use App\Services\PresupuestoService;
|
||||||
|
|
||||||
class Test extends BaseController
|
class Test extends BaseController
|
||||||
{
|
{
|
||||||
@ -15,10 +15,8 @@ class Test extends BaseController
|
|||||||
|
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$papelFormatoModel = model('App\Models\Configuracion\PapelFormatoModel');
|
$text = PresupuestoService::example();
|
||||||
$data = $papelFormatoModel->getElementsForMenu();
|
echo $text;
|
||||||
var_dump($data);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
27
ci4/app/Services/PresupuestoService.php
Normal file
27
ci4/app/Services/PresupuestoService.php
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Services;
|
||||||
|
|
||||||
|
use CodeIgniter\Config\BaseService;
|
||||||
|
|
||||||
|
|
||||||
|
class PresupuestoService extends BaseService
|
||||||
|
{
|
||||||
|
public static function example(){
|
||||||
|
return 'Hola';
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
/**
|
||||||
|
* getPapelForMenu.
|
||||||
|
* Devuelve la lista de papeles disponibles
|
||||||
|
*
|
||||||
|
* @param mixed $tipo_impresion
|
||||||
|
* @param mixed $dimensiones
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public static function getPapelForMenu($tipo_impresion, $dimensiones){
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user