Welcome Guest, Not a member yet? Register   Sign In
problem with library from composer
#1

(This post was last modified: 12-07-2021, 01:09 AM by rosogimo.)

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.
Reply
#2

How are you using it in your code? Perhaps you are forgetting the use statement at the top of the class file?
Reply
#3

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB