diff --git a/index.php b/index.php index 91cb619..32aeb28 100755 --- a/index.php +++ b/index.php @@ -1,14 +1,5 @@ "; //inclusion des classes de PHPExcel - include buildPath("src", "phpexcel", "Classes", "PHPExcel.php"); - include buildPath("src", "phpexcel", "Classes", "PHPExcel", "Writer", "Excel2007.php"); + include __ROOT__.DIRECTORY_SEPARATOR.join(DIRECTORY_SEPARATOR, array("src", "phpexcel", "Classes", "PHPExcel.php")); + include __ROOT__.DIRECTORY_SEPARATOR.join(DIRECTORY_SEPARATOR, array("src", "phpexcel", "Classes", "PHPExcel", "Writer", "Excel2007.php")); //On crée une instance du fichier xls, ainsi que de la feuille active $workbook = new PHPExcel();