有什么办法可以只在更新屏幕上显示信息吗?

问题描述

这是我在背包区管理面板上客户区域的更新/编辑屏幕。

enter image description here

ID的字段类型类似于文本,但只是被禁用且为只读。

但是当我尝试保存更改时,它不起作用。我认为它是我的主要专栏文章,并且不能更改。

    $fields =
    [
        [ 'name' => 'id','label' => 'ID','type' => 'text','hint' => __('dashboard.crud_listing.customers.hint_of_id'),'attributes' => ['disabled' => 'disabled','readonly' => 'readonly'],'fake' => true],];

    $this->crud->addFields($fields);

任何人都可以在不保存此信息的情况下显示一些数据吗?

解决方法

为什么要在“属性”中设置“ var=wlist[$counter] eval wcholder$i+=("${!var}")”?

就像doc中一样:

您应该设置为:

#!/bin/bash
.
.
.
# mlength=length of the longest word in wlist[]
# wlength=contains length of every word in the same order in wlist[]
for ((i=1; i<=mlength; ++i))
do
   declare -a wcholder$i
done

counter=1
   for i in "${wlength[@]}"; do
   eval wcholder$i+=("${wlist[$counter]}")
   ((counter+=1))
done

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...