j'ai suivi ce tutoriel iciCodeigniter PHPExcel classe 'PHPExcel_IOFactory' not found
https://arjunphp.com/how-to-use-phpexcel-with-codeigniter/
et ici
http://www.ahowto.net/php/easily-integrateload-phpexcel-into-codeigniter-framework/
Cependant, je reçois toujours le PHPExcel_IOFactory pas trouvé d'erreur. Je n'ai pas trouvé beaucoup d'aide dans ce domaine. Existe-t-il un plugin Excel supplémentaire ou existe-t-il un moyen de résoudre ce problème?
Ce sont mes contrôleurs construisent
public function __construct() {
parent::__construct();
$this->load->library('Excel');
}
Ceci est mon contrôleurs fonction de téléchargement
$objReader= PHPExcel_IOFactory::createReader('Excel2007');
$objReader->setReadDataOnly(true);
$objPHPExcel= PHPExcel_IOFactory::load($document_folder."/".$file_name.".".$file_extension);
// $this->response($objPHPExcel);
$objPHPExcel=$objReader->load($document_folder."/".$file_name.".".$file_extension);
$totalrows=$objPHPExcel->setActiveSheetIndex(0)->getHighestRow();
$objWorksheet=$objPHPExcel->setActiveSheetIndex(0);
for($i=2;$i<=$totalrows;$i++){ //2 is one row after the header rows
$title= $objWorksheet->getCellByColumnAndRow(0,$i)->getValue();
$first_name= $objWorksheet->getCellByColumnAndRow(1,$i)->getValue();
$last_name= $objWorksheet->getCellByColumnAndRow(2,$i)->getValue();
$date_of_birth= $objWorksheet->getCellByColumnAndRow(3,$i)->getValue();
$email=$objWorksheet->getCellByColumnAndRow(4,$i)->getValue();
$phone_number=$objWorksheet->getCellByColumnAndRow(5,$i)->getValue();
$company=$objWorksheet->getCellByColumnAndRow(6,$i)->getValue();
$input=array(
'title'=>$title,
'first_name'=>$first_name,
'last_name'=>$last_name,
'date_of_birth'=>$date_of_birth,
'email'=>$email,
'phone_number'=>$phone_number,
'company'=>$company,
);
Hope je peux obtenir de l'aide avec ce
À quoi ressemble votre bibliothèque Excel.php? Etes-vous sûr d'avoir TOUS les fichiers PHPExcel? –