Conditions | 1 |
Paths | 0 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | public function output($view, $name) |
||
38 | { |
||
39 | header("Content-type: application/vnd.ms-excel"); |
||
40 | header("Content-Disposition: attachment; filename=\"$name\""); |
||
41 | header("Cache-Control: private, max-age=1, pre-check=1", true); |
||
42 | header("Pragma: none", true); |
||
43 | |||
44 | echo $this->load($view); |
||
45 | exit(); |
||
46 | } |
||
48 |