Closed Bert-de-Jong closed 5 years ago
I have the same problem
You need
use SimpleExcel\SimpleExcel;
because the class is in its own namespace
You need
use SimpleExcel\SimpleExcel;
because the class is in its own namespace
Going by the examples for 0.3.x and 0.4.x, what you write is correct. Even the README mentions it. I have no idea why I didn't include the use statement. Maybe the documentation has changed or is now more easily accessible, or something. I already switched to PhpSpreadsheet since I created this issue (ticket/thread), so I cannot check my code to see what I was trying to do at the time. I'm closing this issue.
I just started using PhpSpreadsheet myself. Working wiht an xls as a "database" is a real pain. but a requirement in my case
I'm running into the same problem as mentioned by Nevega on linux.org.ru here. Namely an error "Class 'SimpleExcel' not found".
The include works, but then the new fails.