PHP导出Excel有很多方案,但是应该讲PHPExcel还是最强的,如今想在Yii里面用它,结果面临两个问题:
1)PHPExcel放在哪里合适;
2)怎么用?直接include会有错误的。
求助。
PHP导出Excel有很多方案,但是应该讲PHPExcel还是最强的,如今想在Yii里面用它,结果面临两个问题:
1)PHPExcel放在哪里合适;
2)怎么用?直接include会有错误的。
求助。
spl_autoload_unregister(array(‘YiiBase’,‘autoload’));
include(‘path/to/PHPExcel.php’);
…
…
…
spl_autoload_register(array(‘YiiBase’,‘autoload’));