/** * @return View\Table */ public function getTable1() { $data = new ArrayObject([['key' => 1, 'other' => 'abc', 'value' => 'A'], ['key' => 2, 'other' => 'def', 'value' => 'B'], ['key' => 3, 'other' => 'ghi', 'value' => 'C']]); $table = new Util\Table($data); $table->addColumn(['name' => 'key', 'label' => 'Key'])->addColumn(['name' => 'value', 'label' => 'Value'])->addColumn(['name' => 'auto', 'label' => 'Auto', 'filter' => function ($v, $r) { return $r['other'] . ':' . $r['value']; }]); return $table; }