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

Yii1.0 framework loading phpexcel error reporting problem

不言
不言Original
2018-05-09 08:59:331365browse

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);

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!

Statement:
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
Previous article:php merge arraysNext article:php merge arrays