您的位置:首页 > 编程语言 > PHP开发

解决Yii使用PHPExcel导入失败的问题

2017-05-18 17:38 323 查看
1、问题
include(PHPExcel_Shared_ZipStreamWrapper.php): failed to open stream: No such file or directory
2、解决方法
找到PHPExcel/Autoloader.php,

public static function Register() {
   return spl_autoload_register(array('PHPExcel_Autoloader', 'Load'), true, true);
}  
改成
public static function Register() {
   return spl_autoload_register(array('PHPExcel_Autoloader', 'Load'));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐