问题描述
这是我在背包区管理面板上客户区域的更新/编辑屏幕。
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