/** * Using a model */ public function crudAction() { $grid = $this->grid(); $b = new Bugs(); $grid->setSource(new Bvb_Grid_Source_Zend_Table($b)); $grid->setColumnsHidden(array('bug_id', 'time', 'verified_by', 'next')); $form = new Bvb_Grid_Form(); $form->setFormTitle('Manage Records'); $form->setAdd(true)->setEdit(true)->setDelete(true)->setAddButton(true)->setSaveAndAddButton(true); #$grid->setDetailColumns(); $grid->setForm($form); $grid->setDeleteConfirmationPage(true); $this->view->pages = $grid->deploy(); $this->render('index'); }