Zend framework2 如何在zf2项目中使用户打开office

Zend framework2 如何在zf2项目中使用户打开office,zend-framework2,Zend Framework2,我已将openoffice下载的文件包括到供应商文件夹中,但我无法访问它,并且在访问时无法访问它 $odf = new \Openoffice_Odf($templatePath, array('CLEAN_REMAINING_VARS' => true)); 这给了我一个错误 未找到“Openoffice\u Odf”类 我认为,您需要使用include\u路径将其包含在脚本中 require VENDOR_PATH.'OpenOffice/Odf.php'; 或者使用spl_自动加

我已将openoffice下载的文件包括到供应商文件夹中,但我无法访问它,并且在访问时无法访问它

$odf = new \Openoffice_Odf($templatePath, array('CLEAN_REMAINING_VARS' => true));
这给了我一个错误

未找到“Openoffice\u Odf”类


我认为,您需要使用include\u路径将其包含在脚本中

require VENDOR_PATH.'OpenOffice/Odf.php';
或者使用spl_自动加载器