josegonzalez/cakephp-csvview — pull request #32 by kevinliteon (2014-09-04 12:26:18+00:00)
Title: throw an error when _serialize not properly set.

like pull request's @asmt3 with test fixes :

prevents unhelpful error message when a CSV view is missing. Without the change you get the following:

Warning (2): Invalid argument supplied for foreach() [APP/Plugin/CsvView/View/CsvView.php, line 227]
Warning (2): Invalid argument supplied for foreach() [APP/Plugin/CsvView/View/CsvView.php, line 227]
Warning (2): Invalid argument supplied for foreach() [APP/Plugin/CsvView/View/CsvView.php, line 227]

when requesting a csv file for which there isn't a template.

Throwing this error allows CakePHP to report the real error.