Skip to content

Commit 6f65337

Browse files
committed
Update README.
Directly use protected property in controller.
1 parent 9b8a641 commit 6f65337

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function export()
261261
];
262262
$_serialize = 'data';
263263

264-
$this->setResponse($this->getResponse()->withDownload('my-file.csv'));
264+
$this->response = $this->response->withDownload('my-file.csv'));
265265
$this->viewBuilder()->setClassName('CsvView.Csv');
266266
$this->set(compact('data', '_serialize'));
267267
}

0 commit comments

Comments
 (0)