problem with library from composer |
Hello,
I have a problem with my composer library. I just start to use composer so, I made the setup and I have in my Application folder the composer.json, the composer.lock, I installed the phpspreadsheet library. All the files are in the vendor folder. Finally, I change my config.php with the autoload composer to TRUE. I have always the same error : Code: Message: Class 'Spreadsheet' not found only here you can find the best porn sites that give access to content for free https://freepornsites.mobi/ What have I forgotten ? Thanks for the help.
How are you using it in your code? Perhaps you are forgetting the use statement at the top of the class file?
PHP Code: use PhpOffice\PhpSpreadsheet\Spreadsheet; The error text "Message: Class 'Spreadsheet' not found" means that you are try to create instance a class without a namespace. With a namespace, the error text would be like this: Message: Class 'PhpOffice\PhpSpreadsheet\Spreadsheet' not found |
Welcome Guest, Not a member yet? Register Sign In |