/** * Start the download process * * @param FabrikFEModelList $model * @param FabrikFEModelCSVExport $exporter * @param string $key * * @throws Exception */ protected function download($model, $exporter, $key) { $input = $this->app->input; $input->set('limitstart' . $model->getId(), 0); // Remove the total from the session $this->session->clear($key); $exporter->downloadFile(); }