【发布时间】:2017-04-13 07:51:51
【问题描述】:
首先,我在这个网址下载PHPExcel:https://github.com/PHPOffice/PHPExcel
然后我解压这个文件并取 PHPExcel.php 和 PHPExcel 文件夹。
我把它们放在 Codeigniter 的库文件夹中。
我加载了 PHPExcel,但它返回了这条消息。
<?php
class ExportSample extends REST_Controller{
public function __construct(){
parent::__construct();
$this->load->database();
$this->load->library('PHPExcel');
}
}
?>
错误:无法加载请求的类:PHPExcel
我想把它放在库中,然后加载库,但也许不是。
我设置的时候有错吗?
请给我任何意见
更新
Error message : require_once(): Failed opening required '/var/www/html/appservice/application//third_party/PHPExcel.php' (include_path='.:/usr/share/php:/usr/share/pear') in
<b>/var/www/html/appservice/application/libraries/Excel.php
【问题讨论】:
标签: php excel codeigniter