Home >Backend Development >PHP Tutorial >Yii1.0 framework loading phpexcel error reporting problem
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.
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!