質問編集履歴
1
ソースコード修正しました。createReaderfor → createReader
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
$tempfilename = time().".html";
|
9
9
|
file_put_contents($tempfilename, $html);//←テンプレートエンジンから吐き出したHTMLソース
|
10
10
|
|
11
|
-
$reader = PHPExcel_IOFactory::
|
11
|
+
$reader = PHPExcel_IOFactory::createReader("HTML");
|
12
12
|
$content = $reader->load($tempfilename);
|
13
13
|
|
14
14
|
Header("Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|