This is my addColumn
function, to which I want to pass these two parameters, $result
and $filter_id
.(这是我的addColumn
函数,我要将这两个参数$result
和$filter_id
传递给该函数。)
->addColumn('check_field', function ($result,$filter_fld) {
$check_fields = $filter_fld;
$check_field_arr = $this->createAarrayChackList($check_fields);
$status = in_array($result->id, $check_field_arr)==true ? 'checked' :'';
return '<input type="checkbox" class="chk itemName form-check-input" id="seasel" value="$data->id" name="origin_port" onclick="get_value_to_hidden_field();" '.$status.'>';
})
How can i pass the two parameters?(如何传递两个参数?)
ask by vivek kalanka translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…