I assign the default value to this input and the disabled
{{ text_field("CODIGO", "type" : "numeric") }}
the value we want to provide is "siguiente"
$sql = "select max(s.CODIGO)+1 as nuevocodigo from USUARIO s ";
$siguiente = $this->db->fetchOne($sql);