Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/UI/Export/ExportPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class ExportPresenter extends AbstractPresenter

public function createComponentGrid(): Datagrid
{
$grid = new DataGrid();
$grid = new Datagrid();

$grid->setDataSource($this->dibiConnection->select('*')->from('users'));

Expand All @@ -29,7 +29,7 @@ public function createComponentGrid(): Datagrid

$grid->addColumnText('status', 'Status');

$grid->addExportCallback('Dump to ajax rq', function (array $rows, DataGrid $grid): void {
$grid->addExportCallback('Dump to ajax rq', function (array $rows, Datagrid $grid): void {
echo 'All fetched data were passed to export callback. Size of data: ';
echo count($rows);
die;
Expand Down
2 changes: 1 addition & 1 deletion config/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ php:
# ======================================
# Extension ============================
extensions:
dibi: Dibi\Bridges\Nette\DibiExtension22
dibi: Dibi\Bridges\Nette\DibiExtension3

latte:
extensions:
Expand Down
Loading