FriendsOfCake/cakephp-csvview

CSV export in cake 3.6

pitocms opened this issue · 5 comments

Some methods are deprecated in cakephp 3.6 ,
example :
Download to withDownload
Subject to getSubject
Config to getConfig
I have changed all method name but still plugin is not working in cake version 3.6.

Hi. I had problems in cake version 3.5.12 too. I resolved it by changing Plugin::load() method in my bootstrap.php file. It should be Plugin::load('CsvView', ['routes' => true]);

Same here with the newest version of 3.6

Do I have to use an old version or will there be an update soon @dereuromark ?

@sdarmofal if you're talking about rendering on .csv extension, that routes file was added 2 years ago. Do you mind PRing a doc change?

@Isengo1989 @pitocms Pull requests to use non-deprecated methods are welcome!

Me too, issue happen when i use method withDownload($filename) in version 3.6.

@leomask101193 did you make sure to do $this->response = $this->reponse->withDownload($filename)?

Also I have created a PR for this #92