|
@@ -164,12 +164,6 @@ class Index extends Api
|
|
|
$tmp->setValue('username',utf8_decode('李四'));//替换变量
|
|
|
$tmp->saveAs($_SERVER['DOCUMENT_ROOT']."/upload/123.docx");
|
|
|
|
|
|
-// $phpWord=new \PhpOffice\PhpWord\PhpWord();
|
|
|
-// $tmp= new \PhpOffice\PhpWord\TemplateProcessor($fileName);//打开模板
|
|
|
-// $tmp->setValue('username','李四');//替换变量name
|
|
|
-// $title= '22222';
|
|
|
-// $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($tmp, 'Word2007');
|
|
|
-// $objWriter->save($_SERVER['DOCUMENT_ROOT']."/upload/".$title.'.docx');
|
|
|
die;
|
|
|
|
|
|
$path= 'mb.html';
|