Start Point al 2026

This commit is contained in:
mirko.aletto committed 2026-05-06 11:04:41 +02:00
commit 8a76e1db3b
371 files changed
+160283

No files matched your search

+56
View File
@@ -0,0 +1,56 @@
<?php namespace App\Controllers;
use App\Libraries\Crud;
class Posizioni extends CRUDController {
// Tab: Posizioni = ['psIDplace', 'psCode', 'psDescrizione'];
protected $crud;
function __construct() {
$params = [
'table' => 'Posizioni',
'dev' => false,
'fields' => $this->field_options(),
'form_title_add' => 'Add Posizione',
'form_title_update' => 'Edit Posizione',
'form_submit' => 'Add',
'table_title' => 'Pagina per la tabella Posizioni',
'form_submit_update' => 'Update',
'base' => '',
'UpdatedAt' => '',
'DeletedAt' => '',
];
$this->crud = new Crud($params, service('request'));
}// __construct
protected function field_options() {
$fields = [];
$fields['psIDplace'] = ['label' => 'ID', 'helper' => 'Identificativo univoco della posizione'];
$fields['psCode'] = ['label' => 'Code', 'helper' => 'Codice della posizione (max 16 caratteri)', 'required' => true, 'unique' => [true, 'psCode']];
$fields['psDescrizione'] = ['label' =>'Descrizione', 'helper' => 'Descrizione della posizione', 'required' => true];
return $fields;
}// field_options
public function index() { return $this->CRUD_view(['psIDplace', 'psCode', 'psDescrizione']); }
//--------------------------------------------------------------------
// Auto CRUD terminato
//--------------------------------------------------------------------
}