Exemplo n.º 1
0
 protected function createGrid()
 {
     $grid = $this->createPreparedGrid();
     $grid->setModel($this->menuTypeFacade->all());
     $grid->addColumnText('code', 'Kód')->setSortable()->setFilterText();
     $grid->addColumnText('name', 'Název')->setSortable()->setFilterText();
     return $grid;
 }
 /**
  * @return array
  */
 public function getOptions()
 {
     return $this->menuTypeFacade->all()->order('name')->fetchPairs('code', 'name');
 }