Wrapper for the PHPExcel library.
- Unzip the contents of this directory to protected/extensions/phpexcel
- Download the latest version of PHPExcel: https://github.com/PHPOffice/PHPExcel/tags
- Unzip the contents of the folder Classes to a new folder protected/extensions/phpexcel/vendor
Yii::import('ext.phpexcel.XPHPExcel');
$phpExcel = XPHPExcel::createPHPExcel();
Or if you don't want a PHPExcel object:
Yii::import('ext.phpexcel.XPHPExcel');
XPHPExcel::init();
Q: Error message: "include(PHPExcel_Style_Supervisor.php) [function.include]: failed to open stream: No such file or directory" A: #3 (comment)