我想在从视图文件调用datatable模型时传递一个新字段lender_id。
$tableBuilder = $tableBuilder->columns([
['data' => 'id' , 'name' => 'id' , 'title' => 'Id'] ,
['data' => 'name' , 'name' => 'name' , 'title' => 'Name'])
->parameters([
'dom' => 'Blfrtip' ,
'with' =>'lender_id=2',//i tried
});
}" ,
])/*->render($url) Tried this also*/;
现在,从视图生成的URL是
我希望它是
http://investment2.demo/admin/merchants/data?draw=2&columns%5B0%5D%5Bdata%5D=id&columns%5B0%5D%5Bname%5D=id&columns的&安培; lender_id = 2