我正在使用库PHPExcel,当我尝试创建writer(PHPExcel_IOFactory::createWriter
)时,出现以下错误:Class 'PHPExcel_Writer_Excel2003XML' not found
。
当我尝试解析此文件(PHPExcel_IOFactory :: createReader)时,一切都很好。
就我而言,变量$version = 'Excel2003XML'
代码示例:
$PHPExcelWriter = PHPExcel_IOFactory::createWriter(new PHPExcel(), $this->version);
更新:Writer
文件夹中没有此类。我签出了github repo(https://github.com/PHPOffice/PHPExcel/tree/1.8/Classes/PHPExcel)。好像是个错误?