Answer the question
In order to leave comments, you need to log in
Why is there a white screen when creating an instance of a class?
Installed through the composer phpspreadsheet according to the manual in the office. docs ( https://phpspreadsheet.readthedocs.io/en/develop/).
I imported spaces and tried to create an instance of the class and ended up with just a blank screen, no errors, warnings or anything.
The code:
ini_set('display_errors', 1);
error_reporting(E_ALL);
require('/var/www/share/_resources/spreadsheet/vendor/autoload.php');
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
$spreadsheet = new Spreadsheet();
echo 'test';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question