Home > Backend Development > PHP Tutorial > Yii1.0 framework loading phpexcel error reporting problem

Yii1.0 framework loading phpexcel error reporting problem

不言
Release: 2023-03-25 17:00:01
Original
1372 people have browsed it

This article mainly introduces the Yii1.0 framework loading phpexcel error reporting. It has certain reference value. Now I share it with you. Friends in need can refer to it.

Yii1.0 framework loading phpexcel error reporting Question

First download the phpexcel extension in protected/extensions, you can download it through composer, or you can download it manually
Then add the following code where you need to quote

/*静用Yii自身的自动加载方法,使PHPExcel自带的autoload生效*/        
 Yii::$enableIncludePath=false;/*引入PHPExcel.php文件*/        
 Yii::import('application.extensions.excel.PHPExcel', 1);
Copy after login

If you quote it again, it will not work Problem

The above is the detailed content of Yii1.0 framework loading phpexcel error reporting problem. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template