mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
71 lines
2.2 KiB
PHP
71 lines
2.2 KiB
PHP
<?php
|
|
|
|
namespace App\Controllers\Logistica;
|
|
|
|
use App\Models\Sistema\SettingsModel;
|
|
use CodeIgniter\Controller;
|
|
|
|
|
|
use App\Models\Collection;
|
|
|
|
class Logisticacontroller extends \App\Controllers\BaseResourceController
|
|
{
|
|
|
|
protected $modelName = TicketModel::class;
|
|
protected $format = 'json';
|
|
|
|
protected static $singularObjectNameCc = 'logistica';
|
|
protected static $singularObjectName = 'Logistica';
|
|
protected static $pluralObjectName = 'Logistica';
|
|
protected static $controllerSlug = 'logistica';
|
|
|
|
protected static $viewPath = 'themes/vuexy/form/logistica/';
|
|
|
|
protected $indexRoute = 'panel';
|
|
|
|
|
|
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
|
|
{
|
|
$this->viewData['pageTitle'] = lang('Logistica.logistica');
|
|
|
|
// Breadcrumbs
|
|
$this->viewData['breadcrumb'] = [
|
|
['title' => lang("App.menu_logistica"), 'route' => "javascript:void(0);", 'active' => false],
|
|
];
|
|
|
|
parent::initController($request, $response, $logger);
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
//checkPermission('tickets.menu');
|
|
|
|
/*$viewData = [
|
|
'currentModule' => static::$controllerSlug,
|
|
'pageSubTitle' => lang('Basic.global.ManageAllRecords', [lang('Tickets.tickets')]),
|
|
'usingServerSideDataTable' => true,
|
|
'userType' => auth()->user()->can('tickets.edit') ? 1 : 0,
|
|
];
|
|
|
|
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
|
|
|
|
return view(static::$viewPath . 'viewTicketList', $viewData);*/
|
|
}
|
|
|
|
public function panel()
|
|
{
|
|
//checkPermission('tickets.menu');
|
|
|
|
$viewData = [
|
|
'currentModule' => static::$controllerSlug,
|
|
'boxTitle' => lang('Logistica.panel'),
|
|
'pageSubTitle' => 'Panel',
|
|
'usingServerSideDataTable' => true,
|
|
];
|
|
|
|
$viewData = array_merge($this->viewData, $viewData); // merge any possible values from the parent controller class
|
|
|
|
return view(static::$viewPath . 'viewPanelLogistica', $viewData);
|
|
}
|
|
}
|