cakephp-csvview
cakephp-csvview copied to clipboard
CakePHP: A view class for generating CSV
https://imgur.com/BD1V12I ```php $_csvEncoding= 'UTF-8'; $_dataEncoding = 'UTF-8'; $_newline = "\r\n"; $_eol = "\r\n"; $_bom = true; $timestamp = time(); $this->response = $this->response->withDownload('test-'.$timestamp.'.csv'); $this->set(compact('data', '_dataEncoding' ,'_csvEncoding', '_newline', '_eol', '_bom')); $this->viewBuilder() ->setClassName('CsvView.Csv')...
Dear all, I have an issue when I export data with csvview. I want to export data from two associated table : ```php $this->response = $this->response->withDownload(‘Inventaire.csv’); $this->loadModel(‘Details’); $details = $this->Details->find(‘all’)->contain([‘Scans’])...
I would like to generate really big csv files with large amounts of rows. ````php public function export() { $this->viewBuilder()->className('CsvView.Csv'); $milionsOfRows = $this->SomeBigTable->find()->enableBufferedResults(false)->all(); $this->set('data',$milionsOfRows); $this->set('_serialize','data'); } ```` Currently this plugin...
When you export the data like in version 3 I get a massive list of array to string conversion errors, can you fix it so it works like it is...