我正在使用ZF数据网格。它工作正常但是当我尝试编辑记录时,它显示编辑表单,其中第一个mysql表中的字段不是来自数据网格行。 我正在使用连接查询来消除数据网格。
$grid = $this->grid();
// In $select I am passing a join query
$grid->query($select);
$manage = new Bvb_Grid_Extra_Column();
$manage ->position('left')
->name('Manage')
->decorator("<a href='{{editUrl}}' OnMouseOver=\"mouseover_help('user_edit')\" OnMouseOut='mouseout_help()'><img src='".SITE_URL."public/images/edit.png' alt='E' /></a> <a href='{{deleteUrl}}' OnMouseOver=\"mouseover_help('user_delete')\" OnMouseOut='mouseout_help()' ><img src='".SITE_URL."public/images/delete.png' alt='D' /></a> ");
$grid->addExtraColumns($manage);
$form = new Bvb_Grid_Form('My_Form');
$form->setAdd(true)->setEdit(true)->setDelete(true)->setAddButton(true)->setSaveAndAddButton(true);
$form->setEditColumn(false);
$form->setDeleteColumn(false);
$grid->setForm($form);
$this->view->pages = $grid->deploy();